1
0
Fork 0

allow chained proxy-binary php-inclusions (#10823)

* allow chained proxy-binary php-inclusion by skipping redundant “phpvfscomposer” stream-wrapper registration
pull/10812/head
Stephan Jorek 2022-06-06 16:14:54 +02:00 committed by GitHub
parent e3527ea37f
commit fbc85dede8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -379,7 +379,10 @@ if (PHP_VERSION_ID < 80000) {
} }
} }
if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) { if (
(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); include("phpvfscomposer://" . $binPathExported);
exit(0); exit(0);
} }