summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-03-14 15:53:02 +0100
committerAnatol Belski <ab@php.net>2016-03-14 15:53:02 +0100
commitbeda05269c3eb8c6f2c002987b05130f2f19c587 (patch)
treeef18ddd7b5d2656374981f53f46fc2a40f359e6b
parent9d02e3b97e5d8511dd901e720d857b592c3631e1 (diff)
downloadphp-git-beda05269c3eb8c6f2c002987b05130f2f19c587.tar.gz
fix test
Many warnings won't appear with libxml2 >= 2.9.3 because in many cases libxml2 2.9.3 will just abort processing.
-rw-r--r--ext/xsl/tests/bug71540.phpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/xsl/tests/bug71540.phpt b/ext/xsl/tests/bug71540.phpt
index e93fb0e125..683bfb5f7e 100644
--- a/ext/xsl/tests/bug71540.phpt
+++ b/ext/xsl/tests/bug71540.phpt
@@ -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