mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +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
23 lines
495 B
PHP
23 lines
495 B
PHP
--TEST--
|
|
Bug #47849 (Non-deep import loses the namespace).
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
|
|
$aDOM= new DOMDocument();
|
|
$aDOM->appendChild($aDOM->createElementNS('urn::root','r:root'));
|
|
|
|
$fromdom= new DOMDocument();
|
|
$fromdom->loadXML('<data xmlns="urn::data">aaa</data>');
|
|
|
|
$data= $fromdom->documentElement;
|
|
$aDOM->documentElement->appendChild($aDOM->importNode($data));
|
|
|
|
echo $aDOM->saveXML();
|
|
|
|
?>
|
|
--EXPECT--
|
|
<?xml version="1.0"?>
|
|
<r:root xmlns:r="urn::root"><data xmlns="urn::data"/></r:root>
|