divinity76 2023-04-10 19:24:38 +02:00 committed by GitHub
parent 3e1713e3eb
commit 9f3cc87e9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -971,7 +971,7 @@ if (!empty($_FILES) && !FM_READONLY) {
if ($in) {
if (PHP_VERSION_ID < 80009) {
// workaround https://bugs.php.net/bug.php?id=81145
while (!in_array($buff = fread($in, 4096), array("", false), true)) { fwrite($out, $buff); }
while (!feof($in)) { fwrite($out, fread($in, 4096)); }
} else {
stream_copy_to_stream($in, $out);
}