tony2001 Thu Nov 23 20:06:11 2006 UTC Modified files: (Branch: PHP_5_2) /php-src run-tests.php Log: do not set an env variable without a name and a value http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.226.2.37.2.16&r2=1.226.2.37.2.17&diff_format=u Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.226.2.37.2.16 php-src/run-tests.php:1.226.2.37.2.17 --- php-src/run-tests.php:1.226.2.37.2.16 Wed Nov 22 10:45:06 2006 +++ php-src/run-tests.php Thu Nov 23 20:06:10 2006 @@ -23,7 +23,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: run-tests.php,v 1.226.2.37.2.16 2006/11/22 10:45:06 mike Exp $ */ +/* $Id: run-tests.php,v 1.226.2.37.2.17 2006/11/23 20:06:10 tony2001 Exp $ */ /* Sanity check to ensure that pcre extension needed by this script is available. * In the event it is not, print a nice error message indicating that this script will @@ -397,7 +397,7 @@ $html_output = is_resource($html_file); break; case '--version': - echo '$Revision: 1.226.2.37.2.16 $'."\n"; + echo '$Revision: 1.226.2.37.2.17 $'."\n"; exit(1); default: echo "Illegal switch '$switch' specified!\n"; @@ -1136,7 +1136,9 @@ 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]; + } } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php