]> granicus.if.org Git - php/commitdiff
- MFH
authorDavid Coallier <davidc@php.net>
Sat, 8 Mar 2008 19:11:18 +0000 (19:11 +0000)
committerDavid Coallier <davidc@php.net>
Sat, 8 Mar 2008 19:11:18 +0000 (19:11 +0000)
- If libxml dotted version smaller than 2.6.20 it's a fail. Patch from scoates

ext/dom/tests/bug38474.phpt

index 7febd22d3146eb45e95547610508e44eb80face4..54226efe565d3a8bec2c187e2f44ef88f61feb37 100644 (file)
@@ -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"