Skip to content

Fix PHP 8.5 deprecation on curl_close()#838

Merged
nicolaasuni merged 1 commit intotecnickcom:mainfrom
mpesari:main
Mar 1, 2026
Merged

Fix PHP 8.5 deprecation on curl_close()#838
nicolaasuni merged 1 commit intotecnickcom:mainfrom
mpesari:main

Conversation

@mpesari
Copy link
Contributor

@mpesari mpesari commented Nov 25, 2025

curl_close() is noop since 8.0.0 and emits E_DEPRECATED since 8.5.0.

This changes the code to call curl_close() only on PHP < 8.0.0.

curl_close() is noop since 8.0.0 and deprecated since 8.5.0
@CLAassistant
Copy link

CLAassistant commented Nov 25, 2025

CLA assistant check
All committers have signed the CLA.

@MacGritsch
Copy link

Same should be done with imagedestroy. See attached patch.
patch.diff.zip

There is code that checks for 'safe_mode', which was removed in PHP 5.4 (not fixed in patch).
Encryption/decryption may also not work but I have no code that uses this, so I have not tested/fixed it.

@williamdes
Copy link
Contributor

Fixes #850

@nicolaasuni nicolaasuni merged commit c48f621 into tecnickcom:main Mar 1, 2026
1 check 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.

5 participants