Jelajahi Sumber

Merge pull request #1962 from Ayesh/php84-curl-depr

[PHP 8.4] Fix: Curl `CURLOPT_BINARYTRANSFER` deprecated
causefx 2 tahun lalu
induk
melakukan
9f38a01928
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      api/functions/normal-functions.php

+ 1 - 2
api/functions/normal-functions.php

@@ -848,7 +848,6 @@ function download($url, $path)
 	$ch = curl_init($url);
 	curl_setopt($ch, CURLOPT_HEADER, 1);
 	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
-	curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
 	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
 	curl_setopt($ch, CURLOPT_CAINFO, getCert());
 	if (localURL($url)) {
@@ -915,4 +914,4 @@ function utf8ize($mixed)
 		return mb_convert_encoding($mixed, "UTF-8", "UTF-8");
 	}
 	return $mixed;
-}
+}