Skip to content

Conversation

@sandesh-as
Copy link

@sandesh-as sandesh-as commented Dec 15, 2025

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.
https://www.php.net/manual/en/migration85.deprecated.php#migration85.deprecated.curl

Motivation and Context

Leaving the call in the destructor would cause a “Deprecated” warning at runtime on PHP 8.5. Removing it avoids deprecation notices for users of the library on newer PHP versions.

How Has This Been Tested?

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@sandesh-as
Copy link
Author

Hi @AaronAtDuo Could you please review and share your feedback or any suggestions for improvement.

@fredbradley
Copy link

Thanks @sandesh-as.

@AaronAtDuo please merge this and push a release.

@glo71317
Copy link

glo71317 commented Dec 30, 2025

@AaronAtDuo Can you please review this PR and lets us know if you need any help further? We are waiting for your response on this.

@glo71317
Copy link

glo71317 commented Jan 9, 2026

@AaronAtDuo @zmilan @kenfox @yizshi Anyone can review this PR to make it compatible with PHP 8.5?

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.

3 participants