Skip to content

Comments

fix: Only call curl_close() in PHP < 8#1947

Merged
Litarnus merged 1 commit intogetsentry:masterfrom
jamieburchell:fix-curl-close-php8
Oct 23, 2025
Merged

fix: Only call curl_close() in PHP < 8#1947
Litarnus merged 1 commit intogetsentry:masterfrom
jamieburchell:fix-curl-close-php8

Conversation

@jamieburchell
Copy link
Contributor

Description

curl_close() has had no effect since PHP 8.0 and is deprecated in PHP 8.5. This patch ensures that curl_close() is only called in PHP < 8

Issues

resolves: #1946

Copy link
Contributor

@Litarnus Litarnus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@Litarnus Litarnus merged commit 4885d13 into getsentry:master Oct 23, 2025
39 checks passed
@jamieburchell jamieburchell deleted the fix-curl-close-php8 branch October 23, 2025 14:49
@ruudk
Copy link

ruudk commented Oct 23, 2025

Thank you ❤️

Will this be automatically tagged ahead of the PHP 8.5 release? 🙏

@Litarnus
Copy link
Contributor

Hi @ruudk! We just released version 4.17.1 that includes this fix

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.

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

3 participants