fix test
authorAnatol Belski <ab@php.net>
Mon, 14 Mar 2016 14:53:02 +0000 (15:53 +0100)
committerAnatol Belski <ab@php.net>
Mon, 14 Mar 2016 14:53:02 +0000 (15:53 +0100)
Many warnings won't appear with libxml2 >= 2.9.3 because in many
cases libxml2 2.9.3 will just abort processing.

ext/xsl/tests/bug71540.phpt

index e93fb0e1252f92a04fac85a3344952696624d6f4..683bfb5f7e32fa1a4779bb585b5d068a51589643 100644 (file)
@@ -3,6 +3,7 @@ Bug #71540 (NULL pointer dereference in xsl_ext_function_php())
 --SKIPIF--
 <?php
 if (!extension_loaded('xsl')) die("skip Extension XSL is required\n");
+if (LIBXML_VERSION >= 20903) die('skip this test is for PHP linked with libxml2 < 2.9.3 only')
 ?>
 --FILE--
 <?php
@@ -64,4 +65,4 @@ Warning: XSLTProcessor::transformToXml(): XPath evaluation returned no result. i
 <h2>Users</h2>
 <table><tr><td></td></tr></table>
 </body></html>
-DONE
\ No newline at end of file
+DONE