1
0
Fork 0

Remove getenv workaround on fixed PHP versions

pull/10474/head
Jordi Boggiano 2022-01-21 10:13:59 +01:00
parent db64534b26
commit e103ee0249
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ if (function_exists('ini_set')) {
// Workaround PHP bug on Windows where env vars containing Unicode chars are mangled in $_SERVER // Workaround PHP bug on Windows where env vars containing Unicode chars are mangled in $_SERVER
// see https://github.com/php/php-src/issues/7896 // 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) { foreach ($_SERVER as $serverVar => $serverVal) {
if (($serverVal = getenv($serverVar)) !== false) { if (($serverVal = getenv($serverVar)) !== false) {
$_SERVER[$serverVar] = $serverVal; $_SERVER[$serverVar] = $serverVal;