mirror of
https://github.com/php/php-src.git
synced 2026-04-25 00:48:25 +02:00
bd9f4fa676
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
453 B
PHP
28 lines
453 B
PHP
--TEST--
|
|
Bug #38949 (Cannot get xmlns value attribute)
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
|
|
$doc = new DOMDocument();
|
|
$doc->load(__DIR__."/nsdoc.xml");
|
|
|
|
$root = $doc->documentElement;
|
|
|
|
echo $root->getAttribute("xmlns")."\n";
|
|
echo $root->getAttribute("xmlns:ns2")."\n";
|
|
|
|
$child = $root->firstChild->nextSibling;
|
|
echo $child->getAttribute("xmlns")."\n";
|
|
echo $child->getAttribute("xmlns:ns2")."\n";
|
|
|
|
echo "DONE\n";
|
|
?>
|
|
--EXPECT--
|
|
http://ns
|
|
http://ns2
|
|
|
|
|
|
DONE
|