From 3df8f949d7f2f5bc3bb6e3ad725792f5e98fd165 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Tue, 16 Jan 2024 22:44:54 +0700 Subject: [PATCH] [PHP 8.4] Fix: Curl `CURLOPT_BINARYTRANSFER` deprecated The `CURLOPT_BINARYTRANSFER` PHP constant from the Curl extension was no-op since PHP 5.1, and is deprecated in PHP 8.4. This removes the constant usage to avoid the deprecation notice in PHP 8.4 and later. Because this constant was no-op since PHP 5.1 (circa 2005), this change has no impact. See: - [PHP.Watch - PHP 8.4 - Curl: CURLOPT_BINARYTRANSFER deprecated](https://php.watch/versions/8.4/CURLOPT_BINARYTRANSFER-deprecated) - [commit](https://github.com/php/php-src/commit/fc16285538e96ecb35d017231051f83dcbd8b55b) --- php/elFinder.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/php/elFinder.class.php b/php/elFinder.class.php index 682e67ec5..4dbfcf1af 100644 --- a/php/elFinder.class.php +++ b/php/elFinder.class.php @@ -2706,7 +2706,6 @@ protected function curl_get_contents(&$url, $timeout, $redirect_max, $ua, $outfp curl_setopt($ch, CURLOPT_FILE, $outfp); } else { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); } curl_setopt($ch, CURLOPT_LOW_SPEED_LIMIT, 1); curl_setopt($ch, CURLOPT_LOW_SPEED_TIME, $timeout);