diff --git a/src/Composer/Installer/BinaryInstaller.php b/src/Composer/Installer/BinaryInstaller.php index e33a5061c..ba50fe17f 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/src/Composer/Installer/BinaryInstaller.php @@ -359,11 +359,6 @@ namespace Composer; $globalsCode $streamProxyCode - -if (__FILE__ === realpath(\$_SERVER['SCRIPT_NAME'])) { - \$_SERVER['SCRIPT_NAME'] = realpath($binPathExported); -} - return include $binPathExported; PROXY; diff --git a/tests/Composer/Test/Installer/BinaryInstallerTest.php b/tests/Composer/Test/Installer/BinaryInstallerTest.php index 0fe971793..8b6d47243 100644 --- a/tests/Composer/Test/Installer/BinaryInstallerTest.php +++ b/tests/Composer/Test/Installer/BinaryInstallerTest.php @@ -110,18 +110,6 @@ EOL [<<<'EOL' -