source: src/router/php7/ext/dom/tests/bug67474.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 382 bytes
Line 
1--TEST--
2Bug #67474 getElementsByTagNameNS and default namespace
3--SKIPIF--
4<?php
5require_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');
12var_dump($list->length);
13$list = $doc->getElementsByTagNameNS(null, 'a');
14var_dump($list->length);
15?>
16--EXPECT--
17int(1)
18int(1)
Note: See TracBrowser for help on using the repository browser.