-
Notifications
You must be signed in to change notification settings - Fork 396
Remove curl_close from codebase (PHP 8.5)
#10977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Remove curl_close from codebase (PHP 8.5)
#10977
Conversation
This function has no effect. Prior to PHP 8.0.0, this function was used to close the resource.
chfsx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the effort on this but I don't think we should remove it. While curl_close() is deprecated in PHP 8.5, it does not trigger warnings in earlier versions and still explicitly releases the cURL handle. PHP will clean it up at shutdown, but keeping it remains best practice and helps avoid issues in long-running contexts.
@mjansenDatabay What do you think?
|
Hi @GitHamo , if we decide to support PHP 8.5 with ILIAS 12, we MUST remove this. Several years ago we as community agreed on a According to the official PHP documentation, calling If we see a need to free resources manually (which did not work the last years), we could execute Best regards, |
GitHamo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjansenDatabay Other than my previous comment, the changes looks good to me. Thank you for the clarification (specially about the Zero Deprecation Policy) and the PR effort 👍
sKarki999
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thank you @mjansenDatabay for the information and the effort :)
This function has no effect.
Prior to PHP 8.0.0, this function was used to
close the resource.