1
0
Fork 0

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

pull/11455/head
Jordi Boggiano 2023-05-05 22:24:59 +02:00 committed by GitHub
parent 2d2d22d0ec
commit e28a5675b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -337,8 +337,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);
} }
} }
@ -360,7 +359,7 @@ namespace Composer;
$globalsCode $globalsCode
$streamProxyCode $streamProxyCode
include $binPathExported; return include $binPathExported;
PROXY; PROXY;
} }