From 658ab073ea39b9802a6aac437bd3bb25972f0480 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 5 May 2023 22:24:59 +0200 Subject: [PATCH] Fixed binary proxies to return whatever the original binary returns as well, fixes #11416 (#11454) --- src/Composer/Installer/BinaryInstaller.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Composer/Installer/BinaryInstaller.php b/src/Composer/Installer/BinaryInstaller.php index 46c2f83dd..076c25326 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/src/Composer/Installer/BinaryInstaller.php @@ -383,8 +383,7 @@ if (PHP_VERSION_ID < 80000) { (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) ) { - include("phpvfscomposer://" . $binPathExported); - exit(0); + return include("phpvfscomposer://" . $binPathExported); } } @@ -406,7 +405,7 @@ namespace Composer; $globalsCode $streamProxyCode -include $binPathExported; +return include $binPathExported; PROXY; }