From 10e23ddfd53e090c583b4bd4ad911cb8eb6a3c80 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 22 Nov 2006 10:44:54 +0000 Subject: [PATCH] - fix ENV section handling --- run-tests.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/run-tests.php b/run-tests.php index 297705fcf5..43098447f7 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1154,11 +1154,9 @@ TEST $file $env['CONTENT_TYPE']=''; $env['CONTENT_LENGTH']=''; if (!empty($section_text['ENV'])) { - foreach(explode("\n", $section_text['ENV']) as $e) { - $e = explode('=',trim($e)); - if (count($e) == 2) { - $env[$e[0]] = $e[1]; - } + foreach(explode("\n", trim($section_text['ENV'])) as $e) { + $e = explode('=',trim($e),2); + $env[$e[0]] = $e[1]; } } -- 2.50.1