Skip to content

Commit efd0edd

Browse files
committed
Comment
1 parent 4e1f77e commit efd0edd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

run-tests.php

+2
Original file line numberDiff line numberDiff line change
@@ -2723,6 +2723,8 @@ function run_test(string $php, $file, array $env): string
27232723
if (!$passed || $leaked) {
27242724
// write .sh
27252725
if (strpos($log_format, 'S') !== false) {
2726+
// Unset all environment variables so that we don't inherit extra
2727+
// ones from the parent process.
27262728
$env_lines = ['unset $(env | cut -d= -f1)'];
27272729
foreach ($env as $env_var => $env_val) {
27282730
if (strval($env_val) === '') {

0 commit comments

Comments
 (0)