com php-src: fix test: ext/xsl/tests/bug71540.phpt
| From: | Anatol Belski | Date: | Mon, 14 Mar 2016 14:53:02 +0000 |
| Subject: | com php-src: fix test: ext/xsl/tests/bug71540.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91336@lists.php.net to get a copy of this message | ||
Commit: beda05269c3eb8c6f2c002987b05130f2f19c587
Author: Anatol Belski <ab@php.net> Mon, 14 Mar 2016 15:53:02 +0100
Parents: 9d02e3b97e5d8511dd901e720d857b592c3631e1
Branches: PHP-5.6 PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=beda05269c3eb8c6f2c002987b05130f2f19c587
Log:
fix test
Many warnings won't appear with libxml2 >= 2.9.3 because in many
cases libxml2 2.9.3 will just abort processing.
Changed paths:
M ext/xsl/tests/bug71540.phpt
Diff:
diff --git a/ext/xsl/tests/bug71540.phpt b/ext/xsl/tests/bug71540.phpt
index e93fb0e..683bfb5 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