1
0
Fork 0

Fixed binary proxies to return whatever the original binary returns as well, fixes #11416 (#11454)

pull/11920/head
Jordi Boggiano 2023-05-05 22:24:59 +02:00
parent 2feeb56477
commit 658ab073ea
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 3 deletions

View File

@ -383,8 +383,7 @@ if (PHP_VERSION_ID < 80000) {
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
) { ) {
include("phpvfscomposer://" . $binPathExported); return include("phpvfscomposer://" . $binPathExported);
exit(0);
} }
} }
@ -406,7 +405,7 @@ namespace Composer;
$globalsCode $globalsCode
$streamProxyCode $streamProxyCode
include $binPathExported; return include $binPathExported;
PROXY; PROXY;
} }