From 40244dc228b18018f1f1dcf4a5cee9e24110e86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sun, 3 Sep 2023 13:39:48 +0200 Subject: [PATCH] Revert "Set $_SERVER['SCRIPT_NAME'] within proxy command (#11562)" (#11617) This reverts commit 9c25633d6d88f08a67488bc50b9263e2b537cc43. --- src/Composer/Installer/BinaryInstaller.php | 5 ----- .../Composer/Test/Installer/BinaryInstallerTest.php | 12 ------------ 2 files changed, 17 deletions(-) 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' -