Skip to content

Commit 7172a53

Browse files
committed
do not set an env variable without a name and a value
1 parent ba8ba5a commit 7172a53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

run-tests.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,9 @@ function run_test($php, $file, $env)
11361136
if (!empty($section_text['ENV'])) {
11371137
foreach(explode("\n", trim($section_text['ENV'])) as $e) {
11381138
$e = explode('=',trim($e),2);
1139-
$env[$e[0]] = $e[1];
1139+
if (!empty($e[0]) && isset($e[1])) {
1140+
$env[$e[0]] = $e[1];
1141+
}
11401142
}
11411143
}
11421144

0 commit comments

Comments
 (0)