summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/xml/tests/bug32001.phpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/xml/tests/bug32001.phpt b/ext/xml/tests/bug32001.phpt
index 26bf58427c..6b7320d06b 100644
--- a/ext/xml/tests/bug32001.phpt
+++ b/ext/xml/tests/bug32001.phpt
@@ -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";