Skip to content

Remove deprecated curl_close() call in API::send() - #8

Merged
madisx merged 1 commit into
madisx:masterfrom
Nuffic:bugfix/remove-deprecated-curl-close
Aug 21, 2026
Merged

Remove deprecated curl_close() call in API::send()#8
madisx merged 1 commit into
madisx:masterfrom
Nuffic:bugfix/remove-deprecated-curl-close

Conversation

@Nuffic

@Nuffic Nuffic commented Jun 5, 2026

Copy link
Copy Markdown

curl_close() has been a no-op since PHP 8.0 and is deprecated as of PHP 8.5. When the host project routes E_DEPRECATED through an exception handler (e.g. Yii2), it is thrown after the request already succeeded, so callers see the request fail even though it went through. The curl handle is freed automatically when it leaves scope, so the call is simply removed. Safe across the supported range (PHP >= 7.4).

curl_close() has been a no-op since PHP 8.0 and is deprecated as of PHP
8.5. When the host project routes E_DEPRECATED through an exception
handler (e.g. Yii2), it is thrown *after* the request already succeeded,
so callers see the request fail even though it went through. The curl
handle is freed automatically when it leaves scope, so the call is
simply removed. Safe across the supported range (PHP >= 7.4).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@madisx
madisx merged commit 13226ee into madisx:master Aug 21, 2026
5 checks passed
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