While running the SDK on PHP 8.5 I’m seeing a deprecation warning originating from curl_close():
Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0
This triggers every time the SDK makes a request.
From PHP 8.0 onward, cURL handles are automatically closed when they fall out of scope, and curl_close() no longer does anything. As of PHP 8.5 the function is formally deprecated.
Would it be possible to remove or conditionally guard the call to curl_close() to avoid triggering warnings in PHP 8.5?
This seems to be the main line causing the issue (excluding tests);
|
curl_close($this->_handle); |
Environment details:
- PHP version: 8.5.0
- SDK Version: 6.30.0
While running the SDK on PHP 8.5 I’m seeing a deprecation warning originating from curl_close():
Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0This triggers every time the SDK makes a request.
From PHP 8.0 onward, cURL handles are automatically closed when they fall out of scope, and curl_close() no longer does anything. As of PHP 8.5 the function is formally deprecated.
Would it be possible to remove or conditionally guard the call to curl_close() to avoid triggering warnings in PHP 8.5?
This seems to be the main line causing the issue (excluding tests);
braintree_php/lib/Braintree/HttpHelpers/CurlRequest.php
Line 49 in 26554ef
Environment details: