From e103ee0249ca2b0e513a79280ab19cda87778c99 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 21 Jan 2022 10:13:59 +0100 Subject: [PATCH] Remove getenv workaround on fixed PHP versions --- bin/composer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/composer b/bin/composer index 9bb3559a4..55391b9b6 100755 --- a/bin/composer +++ b/bin/composer @@ -67,7 +67,7 @@ if (function_exists('ini_set')) { // Workaround PHP bug on Windows where env vars containing Unicode chars are mangled in $_SERVER // see https://github.com/php/php-src/issues/7896 -if (PHP_VERSION_ID >= 70113 && Platform::isWindows()) { +if (PHP_VERSION_ID >= 70113 && (PHP_VERSION_ID < 80016 || (PHP_VERSION_ID >= 80100 && PHP_VERSION_ID < 80103)) && Platform::isWindows()) { foreach ($_SERVER as $serverVar => $serverVal) { if (($serverVal = getenv($serverVar)) !== false) { $_SERVER[$serverVar] = $serverVal;