Skip to content

Conversation

@jeffreyparker
Copy link
Contributor

@jeffreyparker jeffreyparker commented Jan 21, 2026

Description

PHP 8.5 deprecated the curl_close() function because cURL handles are now objects (CurlHandle), and PHP's garbage collector automatically frees them — calling curl_close() no longer does anything.

Reference: https://www.php.net/manual/en/migration85.deprecated.php#migration85.deprecated.curl

Removing the call from the destructor avoids deprecation notices for users of the library on PHP 8.5+.

Context

This is a resubmission of #43 to trigger CI checks and add additional PHP versions to CI.

Credit to @sandesh-as for the original fix.

@jeffreyparker jeffreyparker force-pushed the php-85-deprecation-fix-v2 branch from 321f581 to d741f29 Compare January 23, 2026 20:49
@glo71317
Copy link

glo71317 commented Feb 3, 2026

@jeffreyparker Do we have an estimated timeline for when this change will be available for use?

@jeffreyparker jeffreyparker merged commit 1efb70d into master Feb 3, 2026
5 checks passed
@jeffreyparker jeffreyparker deleted the php-85-deprecation-fix-v2 branch February 3, 2026 20:26
@jeffreyparker
Copy link
Contributor Author

@glo71317 I just merged the fix in, so it should be available using dev-master. Would it also be helpful for us to create a new release version (e.g. 1.2.1)?

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.

4 participants