TCPDF icon indicating copy to clipboard operation
TCPDF copied to clipboard

Fix PHP 8.5 deprecation on curl_close()

Open mpesari opened this issue 2 months ago • 2 comments

curl_close() is noop since 8.0.0 and emits E_DEPRECATED since 8.5.0.

This changes the code to call curl_close() only on PHP < 8.0.0.

  • https://www.php.net/curl_close
  • https://github.com/php/php-src/blob/php-8.0.0/UPGRADING#L1016-L1020
  • https://github.com/php/php-src/blob/php-8.5.0/UPGRADING#L416-L418

mpesari avatar Nov 25 '25 21:11 mpesari