summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2006-11-22 10:45:06 +0000
committerMichael Wallner <mike@php.net>2006-11-22 10:45:06 +0000
commita09ef37d30b9d1d753151c810b2f11a91145117a (patch)
treeaf6b675c9687cb4ad38d58ceabe5bbcca2419620 /run-tests.php
parentdf1a1c84412b28323a3818f1a5bed931491bddb3 (diff)
downloadphp-git-a09ef37d30b9d1d753151c810b2f11a91145117a.tar.gz
- fix ENV section handling
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php8
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];
}
}