Skip to content

Commit 23a7b0f

Browse files
committed
Fix environment variable not work in run-tests.php
Closes GH-6657.
1 parent 559fc46 commit 23a7b0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function main(): void
340340
if (function_exists('sapi_windows_vt100_support') && !sapi_windows_vt100_support(STDOUT, true)) {
341341
$colorize = false;
342342
}
343-
if (array_key_exists('NO_COLOR', $_ENV)) {
343+
if (array_key_exists('NO_COLOR', $environment)) {
344344
$colorize = false;
345345
}
346346
$selected_tests = false;
@@ -1446,7 +1446,7 @@ function run_all_tests_parallel(array $test_files, array $env, $redir_tested): v
14461446
[], // Inherit our stdin, stdout and stderr
14471447
$pipes,
14481448
null,
1449-
$_ENV + [
1449+
$GLOBALS['environment'] + [
14501450
"TEST_PHP_WORKER" => $i,
14511451
"TEST_PHP_URI" => $sockUri,
14521452
],

0 commit comments

Comments
 (0)