Skip to content

Remove deprecated curl_close#127

Merged
jensschuppe merged 2 commits intosystopia:masterfrom
colemanw:curl_close
Feb 3, 2026
Merged

Remove deprecated curl_close#127
jensschuppe merged 2 commits intosystopia:masterfrom
colemanw:curl_close

Conversation

@colemanw
Copy link
Contributor

@colemanw colemanw commented Jan 21, 2026

The function curl_close() is deprecated; as of php 8.0 it does nothing.
See https://www.php.net/manual/en/function.curl-close.php

@@ -264,6 +262,5 @@ public function getinfo($ch, $option) {
}

public function close($ch) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As a followup to this PR, this function could be removed.

@jensschuppe
Copy link
Collaborator

@MarcMichalsky this affects the twingle shop code, would you have a look?

@MarcMichalsky
Copy link
Contributor

Well, the info.xml file states that this extension is compatible with CiviCRM version 5.65 So PHP 7 could still be a thing. And as long as it doesn’t hurt...

@jensschuppe
Copy link
Collaborator

We're currently preparing compatibility checks with newer PHP versions, so this will be fixed in the process.

I'm just wondering why PHPStan hasn't reported the deprecation for 8.0 and 8.1 already ... 🤔

@colemanw
Copy link
Contributor Author

colemanw commented Jan 23, 2026

I think PHP was late to officially deprecate it. As of 8.0 it does nothing and is "not recommended" but it's not officially deprecated until 8.5.

colemanw and others added 2 commits February 3, 2026 15:47
This function is deprecated as of php 8.0 and does nothing.
See https://www.php.net/manual/en/function.curl-close.php
This function is deprecated as of php 8.0 and does nothing.
See https://www.php.net/manual/en/function.curl-close.php
@jensschuppe jensschuppe added bug Something isn't working status:needs review Code needs review and testing labels Feb 3, 2026
@jensschuppe jensschuppe added this to the 1.7 milestone Feb 3, 2026
@jensschuppe jensschuppe merged commit c0506f2 into systopia:master Feb 3, 2026
5 of 9 checks passed
@jensschuppe jensschuppe added status:fixed The issue has been resolved (usually by committing/merging code) and removed status:needs review Code needs review and testing labels Feb 3, 2026
@colemanw colemanw deleted the curl_close branch February 3, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working status:fixed The issue has been resolved (usually by committing/merging code)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants