mirror of
https://github.com/php/php-src.git
synced 2026-04-19 05:51:02 +02:00
For rationale, see https://github.com/php/php-src/pull/6787 Make extension checks lowercase, add a special case for opcache that has internal name not matching .so filename. Extensions migrated in part 2: * dom * exif * fileinfo * ffi
28 lines
574 B
PHP
28 lines
574 B
PHP
--TEST--
|
|
Bug #67474 getElementsByTagNameNS and default namespace
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
declare(strict_types=1);
|
|
|
|
$doc = new DOMDocument();
|
|
$doc->loadXML('<root xmlns:x="x"><a/><x:a/></root>');
|
|
$list = $doc->getElementsByTagNameNS('', 'a');
|
|
var_dump($list->length);
|
|
$list = $doc->getElementsByTagNameNS(null, 'a');
|
|
var_dump($list->length);
|
|
|
|
$elem = $doc->documentElement;
|
|
$list = $elem->getElementsByTagNameNS('', 'a');
|
|
var_dump($list->length);
|
|
$list = $elem->getElementsByTagNameNS(null, 'a');
|
|
var_dump($list->length);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
int(1)
|
|
int(1)
|
|
int(1)
|