summaryrefslogtreecommitdiff
path: root/ext/dom/tests/bug49490.phpt
blob: 897cfee2c6617023fb546d7396b68e8548a05cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #49490 (XPath namespace prefix conflict).
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$doc = new DOMDocument();
$doc->loadXML('<prefix:root xmlns:prefix="urn:a" />');

$xp = new DOMXPath($doc);
$xp->registerNamespace('prefix', 'urn:b');

echo($xp->query('//prefix:root', null, false)->length . "\n");

?>
--EXPECT--
0