summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/xml/tests/bug32001.phpt10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/xml/tests/bug32001.phpt b/ext/xml/tests/bug32001.phpt
index 375ceaf..3c91aca 100644
--- a/ext/xml/tests/bug32001.phpt
+++ b/ext/xml/tests/bug32001.phpt
@@ -151,10 +151,12 @@ $suite = array(
new testcase("GB2312", 1),
);
-preg_match("/^libxml2 Version.*\$/im", `$_ENV[TEST_PHP_EXECUTABLE] -i`, $match);
-
-echo $match[0], "\n";
-
+if (XML_SAX_IMPL == 'libxml') {
+ preg_match("/^libxml2 Version.*\$/im", `$_ENV[TEST_PHP_EXECUTABLE] -i`, $match);
+ echo $match[0], "\n";
+} else {
+ echo "libxml2 Version => NONE\n";
+}
foreach ($suite as $testcase) {
$testcase->run();