| @@ -107,11 +107,13 @@ | ||
| 107 | 107 | } |
| 108 | 108 | } |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) { | |
| 112 | - include("phpvfscomposer://" . __DIR__ . '/..'.'/nikic/php-parser/bin/php-parse'); | |
| 113 | - exit(0); | |
| 111 | + if ( | |
| 112 | + (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) | |
| 113 | + || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) | |
| 114 | + ) { | |
| 115 | + return include("phpvfscomposer://" . __DIR__ . '/..'.'/nikic/php-parser/bin/php-parse'); | |
| 114 | 116 | } |
| 115 | 117 | } |
| 116 | 118 | |
| 117 | -include __DIR__ . '/..'.'/nikic/php-parser/bin/php-parse'; | |
| 119 | +return include __DIR__ . '/..'.'/nikic/php-parser/bin/php-parse'; | |