From 2dc30ba64fb58bfdb663a86f2653a309a2dbf4b4 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Sat, 26 Oct 2024 10:43:56 +0100 Subject: [PATCH] Ayesh: [PHP 8.4] Fix: Curl CURLOPT_BINARYTRANSFER deprecated #675 --- include/tcpdf_static.php | 1 - 1 file changed, 1 deletion(-) diff --git a/include/tcpdf_static.php b/include/tcpdf_static.php index 4cee355e..395bb958 100644 --- a/include/tcpdf_static.php +++ b/include/tcpdf_static.php @@ -1961,7 +1961,6 @@ public static function fileGetContents($file) { // try to get remote file data using cURL $crs = curl_init(); curl_setopt($crs, CURLOPT_URL, $path); - curl_setopt($crs, CURLOPT_BINARYTRANSFER, true); curl_setopt($crs, CURLOPT_FAILONERROR, true); curl_setopt($crs, CURLOPT_RETURNTRANSFER, true); if ((ini_get('open_basedir') == '') && (!ini_get('safe_mode'))) {