Skip to content

Commit

Permalink
Fixed binary proxies to return whatever the original binary returns a…
Browse files Browse the repository at this point in the history
…s well, fixes #11416 (#11454)
  • Loading branch information
Seldaek committed Sep 28, 2023
1 parent 2feeb56 commit 658ab07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Composer/Installer/BinaryInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,7 @@ public function url_stat(\$path, \$flags)
(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);
exit(0);
return include("phpvfscomposer://" . $binPathExported);
}
}
Expand All @@ -406,7 +405,7 @@ public function url_stat(\$path, \$flags)
$globalsCode
$streamProxyCode
include $binPathExported;
return include $binPathExported;
PROXY;
}
Expand Down

0 comments on commit 658ab07

Please sign in to comment.