From 8a36c88cac9dc29a646c1fcefa5571368b2e61ab Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 29 Nov 2021 09:39:13 +0100 Subject: [PATCH] Get rid of $binPath global in bin proxies --- 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 5b4771db9..ff29c1b3e 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/src/Composer/Installer/BinaryInstaller.php @@ -342,7 +342,7 @@ if (PHP_VERSION_ID < 80000) { } if (function_exists('stream_wrapper_register') && stream_wrapper_register('composer-bin-proxy', 'Composer\BinProxyWrapper')) { - include("composer-bin-proxy://" . \$binPath); + include("composer-bin-proxy://" . $binPathExported); exit(0); } } @@ -363,10 +363,9 @@ STREAMPROXY; namespace Composer; -\$binPath = $binPathExported; $autoloadPathCode $streamProxyCode -include \$binPath; +include $binPathExported; PROXY; }