summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Coallier <davidc@php.net>2008-03-08 19:11:18 +0000
committerDavid Coallier <davidc@php.net>2008-03-08 19:11:18 +0000
commit47f576db8f3c4891855181a813f5b2b27216ca7e (patch)
tree6f022695c34ebf35e5ec46b58174f3e958de37b3
parentb6d53c51e8a695f996c9758bfb2bc5f82dc49065 (diff)
downloadphp-git-47f576db8f3c4891855181a813f5b2b27216ca7e.tar.gz
- MFH
- If libxml dotted version smaller than 2.6.20 it's a fail. Patch from scoates
-rw-r--r--ext/dom/tests/bug38474.phpt7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/dom/tests/bug38474.phpt b/ext/dom/tests/bug38474.phpt
index 7febd22d31..54226efe56 100644
--- a/ext/dom/tests/bug38474.phpt
+++ b/ext/dom/tests/bug38474.phpt
@@ -1,7 +1,12 @@
--TEST--
Bug #38474 (getAttribute select attribute by order, even when prefixed) (OK to fail with libxml2 < 2.6.2x)
--SKIPIF--
-<?php require_once('skipif.inc'); ?>
+<?php
+require_once('skipif.inc');
+if (version_compare(LIBXML_DOTTED_VERSION, "2.6.20", "<")) {
+ print "skip libxml version " . LIBXML_DOTTED_VERSION;
+}
+?>
--FILE--
<?php
$xml = '<node xmlns:pre="http://foo.com/tr/pre"