Skip to content

Conversation

@mrohnstock
Copy link
Contributor

In PHP < 8, curl_init() returns a resource that must be explicitly closed using curl_close() to avoid memory leaks.

Starting with PHP 8, curl_init() returns a CurlHandle object which is automatically cleaned up by the garbage collector. Calling curl_close() on it has no effect and triggers a deprecation warning in PHP 8.5+.

This change ensures curl_close() is only called for resource handles.

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.

1 participant