Skip to content

Don't call curl_close on PHP 8.0 or higher, it doesn't do anything an… - #145

Merged
regdos merged 1 commit into
PayU-EMEA:masterfrom
baldwin-agency:fixes-php85-deprecated-usage
Jun 22, 2026
Merged

Don't call curl_close on PHP 8.0 or higher, it doesn't do anything an…#145
regdos merged 1 commit into
PayU-EMEA:masterfrom
baldwin-agency:fixes-php85-deprecated-usage

Conversation

@hostep

@hostep hostep commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

…d got deprecated in PHP 8.5

See the documentation: https://www.php.net/manual/en/function.curl-close.php

Note: This function has no effect. Prior to PHP 8.0.0, this function was used to close the resource.

This function has been DEPRECATED as of PHP 8.5.0. Relying on this function is highly discouraged.

This module declares itself as needing PHP 7.4 or higher. So we can't fully remove this function call, hence it's now wrapped in a check to see which PHP version is running the code to only execute on PHP < 8.0. So we get no deprecated warning when running this code on PHP 8.5 or higher.

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