From a09ef37d30b9d1d753151c810b2f11a91145117a Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 22 Nov 2006 10:45:06 +0000 Subject: - fix ENV section handling --- run-tests.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'run-tests.php') diff --git a/run-tests.php b/run-tests.php index cacf1760c8..5b5b91b16d 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1134,11 +1134,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]; } } -- cgit v1.2.1