From: Antony Dovgal Date: Thu, 23 Nov 2006 20:06:02 +0000 (+0000) Subject: do not set an env variable without a name and a value X-Git-Tag: RELEASE_1_0_0RC1~923 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e77515c30822c8427d17d11571a42be8e546bd4;p=php do not set an env variable without a name and a value --- diff --git a/run-tests.php b/run-tests.php index 43098447f7..978bc511b5 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1156,7 +1156,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]; + } } }