]> granicus.if.org Git - php/commitdiff
Partial fix test: It is still possible to use expat libs with ext/xml..
authorfoobar <sniper@php.net>
Sun, 3 Apr 2005 00:12:26 +0000 (00:12 +0000)
committerfoobar <sniper@php.net>
Sun, 3 Apr 2005 00:12:26 +0000 (00:12 +0000)
ext/xml/tests/bug32001.phpt

index 375ceafed5e362130435c49d948e92367c9f03bd..3c91aca2dc020d11197c0017bce178e8029beac2 100644 (file)
@@ -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();