diff --git a/src/Composer/Installer/BinaryInstaller.php b/src/Composer/Installer/BinaryInstaller.php index 3ffbb50b3..47022ff42 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/src/Composer/Installer/BinaryInstaller.php @@ -192,14 +192,18 @@ class BinaryInstaller $binFile = basename($binPath); $binContents = file_get_contents($bin); + // For php files, we generate a PHP proxy instead of a shell one, + // which allows calling the proxy with a custom php process if (preg_match('{^(?:#!(?:/usr)?/bin/env php|#!(?:/usr)?/bin/php|