From 164a769dc66bed9db3a3eca61f329f4d6f39fb20 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 30 Dec 2021 20:40:55 +0100 Subject: [PATCH] Avoid returning actual fstat information as it induces modern PHPs in error when the returned file size is bigger than the fstat size, refs #10387 --- src/Composer/Installer/BinaryInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer/BinaryInstaller.php b/src/Composer/Installer/BinaryInstaller.php index e3e74835b..07faece4e 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/src/Composer/Installer/BinaryInstaller.php @@ -348,7 +348,7 @@ if (PHP_VERSION_ID < 80000) { public function stream_stat() { - return fstat(\$this->handle); + return array(); } public function stream_set_option(\$option, \$arg1, \$arg2)