]> granicus.if.org Git - php/commitdiff
fix test
authorAntony Dovgal <tony2001@php.net>
Wed, 29 Jun 2005 11:52:18 +0000 (11:52 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 29 Jun 2005 11:52:18 +0000 (11:52 +0000)
ext/xml/tests/bug32001.phpt

index 26bf58427c6db9b3cbe1dc94eb03934118df5507..6b7320d06b5375d46f77b49684d6f184fda31ec3 100644 (file)
@@ -156,7 +156,8 @@ $suite = array(
 );
 
 if (XML_SAX_IMPL == 'libxml') {
-  preg_match("/^libxml2 Version.*\$/im", `$_ENV[TEST_PHP_EXECUTABLE] -i`, $match);
+  $php = getenv('TEST_PHP_EXECUTABLE');
+  preg_match("/^libxml2 Version.*\$/im", `$php -i`, $match);
   echo $match[0], "\n";
 } else {
   echo "libxml2 Version => NONE\n";