1
0
Fork 0

Only run getenv workaround on PHP 7.1.13+

pull/10432/head
Jordi Boggiano 2022-01-07 13:50:00 +01:00
parent 641ad10a9f
commit 9305dea128
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
// see https://github.com/php/php-src/issues/7896
if (Platform::isWindows()) {
if (PHP_VERSION_ID >= 70113 && Platform::isWindows()) {
$_SERVER = array_merge($_SERVER, array_intersect_ukey($_SERVER, getenv(), 'strcasecmp'));
}