]> granicus.if.org Git - php/commitdiff
- Skipif libxml dotted version is < 2.6.20. Patch from scoates
authorDavid Coallier <davidc@php.net>
Sat, 8 Mar 2008 19:08:58 +0000 (19:08 +0000)
committerDavid Coallier <davidc@php.net>
Sat, 8 Mar 2008 19:08:58 +0000 (19:08 +0000)
ext/dom/tests/bug38474.phpt

index e8fef5ca7ea1b356e35610a90d6891b0ea3f2b64..99b0ad70d815a6bd8970c01df04f8da2469b2755 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 = b'<node xmlns:pre="http://foo.com/tr/pre"