Skip to content

Remove deprecated curl_close() call for PHP 8.5 compatibility#63

Open
magelogger wants to merge 1 commit intotcdent:masterfrom
magelogger:fix/curl-close-php85-deprecation
Open

Remove deprecated curl_close() call for PHP 8.5 compatibility#63
magelogger wants to merge 1 commit intotcdent:masterfrom
magelogger:fix/curl-close-php85-deprecation

Conversation

@magelogger
Copy link
Copy Markdown
Contributor

Since PHP 8.0, curl handles are CurlHandle objects destroyed automatically by the garbage collector, making curl_close() a no-op. In PHP 8.5 it was officially deprecated and triggers a deprecation notice.

Removing this call has no functional impact on PHP 7.x — the handle is freed when the $client object goes out of scope.

Since PHP 8.0, curl handles are CurlHandle objects destroyed automatically
by the garbage collector, making curl_close() a no-op. In PHP 8.5 it was
officially deprecated and triggers a deprecation notice.

Removing this call has no functional impact on PHP 7.x — the handle is
freed when the $client object goes out of scope.
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