Annotation of embedaddon/php/ext/dom/tests/bug49490.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #49490 (XPath namespace prefix conflict).
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7: $doc = new DOMDocument();
! 8: $doc->loadXML('<prefix:root xmlns:prefix="urn:a" />');
! 9:
! 10: $xp = new DOMXPath($doc);
! 11: $xp->registerNamespace('prefix', 'urn:b');
! 12:
! 13: echo($xp->query('//prefix:root', null, false)->length . "\n");
! 14:
! 15: ?>
! 16: --EXPECT--
! 17: 0
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>