]> granicus.if.org Git - php/commitdiff
do not set an env variable without a name and a value
authorAntony Dovgal <tony2001@php.net>
Thu, 23 Nov 2006 20:06:02 +0000 (20:06 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 23 Nov 2006 20:06:02 +0000 (20:06 +0000)
run-tests.php

index 43098447f75d44e6f0e44c98dc19bc188e5b1ec2..978bc511b5ae3547c63ce08e396cb574f9e8a4df 100755 (executable)
@@ -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];
+                       }
                }
        }