From: foobar Date: Sun, 3 Apr 2005 00:12:26 +0000 (+0000) Subject: Partial fix test: It is still possible to use expat libs with ext/xml.. X-Git-Tag: php-5.0.1b1~633 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc883fd47774556a96bb5dc1da68c5165c564301;p=php Partial fix test: It is still possible to use expat libs with ext/xml.. --- diff --git a/ext/xml/tests/bug32001.phpt b/ext/xml/tests/bug32001.phpt index 375ceafed5..3c91aca2dc 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();