Skip to content

Commit 19c4a2e

Browse files
abokskrakjoe
authored andcommitted
Add (failing) testcase for bug #67474
1 parent 3e798c4 commit 19c4a2e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ext/dom/tests/bug67474.phpt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--TEST--
2+
Bug #67474 getElementsByTagNameNS and default namespace
3+
--SKIPIF--
4+
<?php
5+
require_once('skipif.inc');
6+
?>
7+
--FILE--
8+
<?php
9+
$doc = new DOMDocument();
10+
$doc->loadXML('<root xmlns:x="x"><a/><x:a/></root>');
11+
$list = $doc->getElementsByTagNameNS('', 'a');
12+
var_dump($list->length);
13+
$list = $doc->getElementsByTagNameNS(null, 'a');
14+
var_dump($list->length);
15+
?>
16+
--EXPECT--
17+
int(1)
18+
int(1)

0 commit comments

Comments
 (0)