1
0
Fork 0

Get rid of $binPath global in bin proxies

pull/10319/head
Jordi Boggiano 2021-11-29 09:39:13 +01:00
parent ace8a1776c
commit 8a36c88cac
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 3 deletions

View File

@ -342,7 +342,7 @@ if (PHP_VERSION_ID < 80000) {
} }
if (function_exists('stream_wrapper_register') && stream_wrapper_register('composer-bin-proxy', 'Composer\BinProxyWrapper')) { 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); exit(0);
} }
} }
@ -363,10 +363,9 @@ STREAMPROXY;
namespace Composer; namespace Composer;
\$binPath = $binPathExported;
$autoloadPathCode $autoloadPathCode
$streamProxyCode $streamProxyCode
include \$binPath; include $binPathExported;
PROXY; PROXY;
} }