Skip to content

Remove deprecated curl_close() for PHP 8.5 compatibility (6.4.x backport)#1178

Open
mably wants to merge 1 commit intosolariumphp:6.4.xfrom
mably:fix/remove-deprecated-curl-close
Open

Remove deprecated curl_close() for PHP 8.5 compatibility (6.4.x backport)#1178
mably wants to merge 1 commit intosolariumphp:6.4.xfrom
mably:fix/remove-deprecated-curl-close

Conversation

@mably
Copy link

@mably mably commented Mar 12, 2026

Summary

curl_close() has been a no-op since PHP 8.0 (CurlHandle objects are freed automatically) and is deprecated since PHP 8.5, triggering:

Deprecated function: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0

This was already fixed on master in #1170 but not backported to 6.x.

Fixes #1177

@thomascorthals
Copy link
Member

@mably You'll have to make this PR against the 6.4.x branch.

curl_close() has been a no-op since PHP 8.0 and is deprecated
since PHP 8.5. CurlHandle objects are freed automatically when
they fall out of scope.

Fixes solariumphp#1177
@mably mably force-pushed the fix/remove-deprecated-curl-close branch from aa57e32 to 8f11b58 Compare March 12, 2026 17:33
@mably mably changed the title Remove deprecated curl_close() for PHP 8.5 compatibility (6.x backport) Remove deprecated curl_close() for PHP 8.5 compatibility Mar 12, 2026
@mably mably changed the base branch from 6.x to 6.4.x March 12, 2026 17:33
@mably
Copy link
Author

mably commented Mar 12, 2026

Sorry. It should be ok now.

@mably mably changed the title Remove deprecated curl_close() for PHP 8.5 compatibility Remove deprecated curl_close() for PHP 8.5 compatibility (6.4.x backport) Mar 12, 2026
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