mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
d920d6226e
add test
18 lines
350 B
PHP
18 lines
350 B
PHP
--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
|