Skip to content

Remove curl deprecated calls for PHP 8.4/8.5 - #359

Merged
rosell-dk merged 2 commits into
rosell-dk:masterfrom
hostep:remove-curl-deprecation-calls
Jun 18, 2026
Merged

Remove curl deprecated calls for PHP 8.4/8.5#359
rosell-dk merged 2 commits into
rosell-dk:masterfrom
hostep:remove-curl-deprecation-calls

Conversation

@hostep

@hostep hostep commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Removes some deprecated curl code lines:

  1. CURLOPT_BINARYTRANSFER is no longer needed since PHP 5.5 according to the official docs or no longer needed since PHP 5.1.2 according to another source. It's also deprecated since PHP 8.4. Since this module requires at the minimum PHP 5.6, it should be fine to remove it.
  2. Calling curl_close has no effect since PHP 8.0 and was deprecated in PHP 8.5. So I'm wrapping it around a check to only call it when PHP is lower then 8.0

@rosell-dk: since you've been active today, could you spare a few minutes to review and test these changes? And also to take a look at: #358?
We're going to upgrade one of our projects that uses this library to PHP 8.5 and we'd like to get rid of deprecation warnings.

Many thanks!

… 8.0 and the CI running on PHP 7.4 isn't too happy with it.
@baldwinagency-pieter
baldwinagency-pieter force-pushed the remove-curl-deprecation-calls branch from a8a34c5 to 50a44f7 Compare June 18, 2026 07:37
@rosell-dk
rosell-dk merged commit 7805320 into rosell-dk:master Jun 18, 2026
3 checks passed
@rosell-dk

Copy link
Copy Markdown
Owner

Tested, merged and released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants