From 7172a53c3a62c0e7816c1eee9d29165bfde3cb2b Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 23 Nov 2006 20:06:10 +0000 Subject: [PATCH] do not set an env variable without a name and a value --- run-tests.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 5b5b91b16d..aa38f80816 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1136,7 +1136,9 @@ TEST $file if (!empty($section_text['ENV'])) { foreach(explode("\n", trim($section_text['ENV'])) as $e) { $e = explode('=',trim($e),2); - $env[$e[0]] = $e[1]; + if (!empty($e[0]) && isset($e[1])) { + $env[$e[0]] = $e[1]; + } } } -- 2.40.0