diff options
author | twosee <twose@qq.com> | 2021-02-01 12:56:59 +0800 |
---|---|---|
committer | twosee <twose@qq.com> | 2021-02-01 17:27:19 +0800 |
commit | 23a7b0f323354785011b9eda4ffdb9fbcab63fe9 (patch) | |
tree | 864967145a0b2a7d2569e84732af666cd77e4f37 /run-tests.php | |
parent | 559fc46b9fcdb014b0ac43ff0228f663ce78ccb0 (diff) | |
download | php-git-23a7b0f323354785011b9eda4ffdb9fbcab63fe9.tar.gz |
Fix environment variable not work in run-tests.php
Closes GH-6657.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php index 613b1391e1..51758ce507 100755 --- a/run-tests.php +++ b/run-tests.php @@ -340,7 +340,7 @@ function main(): void if (function_exists('sapi_windows_vt100_support') && !sapi_windows_vt100_support(STDOUT, true)) { $colorize = false; } - if (array_key_exists('NO_COLOR', $_ENV)) { + if (array_key_exists('NO_COLOR', $environment)) { $colorize = false; } $selected_tests = false; @@ -1446,7 +1446,7 @@ function run_all_tests_parallel(array $test_files, array $env, $redir_tested): v [], // Inherit our stdin, stdout and stderr $pipes, null, - $_ENV + [ + $GLOBALS['environment'] + [ "TEST_PHP_WORKER" => $i, "TEST_PHP_URI" => $sockUri, ], |