diff options
| author | Michael Wallner <mike@php.net> | 2006-11-22 10:45:06 +0000 |
|---|---|---|
| committer | Michael Wallner <mike@php.net> | 2006-11-22 10:45:06 +0000 |
| commit | a09ef37d30b9d1d753151c810b2f11a91145117a (patch) | |
| tree | af6b675c9687cb4ad38d58ceabe5bbcca2419620 /run-tests.php | |
| parent | df1a1c84412b28323a3818f1a5bed931491bddb3 (diff) | |
| download | php-git-a09ef37d30b9d1d753151c810b2f11a91145117a.tar.gz | |
- fix ENV section handling
Diffstat (limited to 'run-tests.php')
| -rwxr-xr-x | run-tests.php | 8 |
1 files changed, 3 insertions, 5 deletions
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]; } } |
