--TEST--
Reconcile a reused namespace from doc->oldNs
--EXTENSIONS--
dom
--FILE--
createElementNS('http://www.w3.org/2000/xhtml', 'html');
$dom->loadXML(<<
XML);
$root = $dom->firstElementChild;
echo "Add first\n";
$element = $dom->createElementNS('http://example.com/B', 'p', 'Hello World');
$root->appendChild($element);
echo "Add second\n";
$element = $dom->createElementNS('http://example.com/A', 'p', 'Hello World');
$root->appendChild($element);
echo "Add third\n";
$element = $dom->createElementNS('http://example.com/A', 'p', 'Hello World');
$root->appendChild($element);
var_dump($dom->saveXML());
?>
--EXPECT--
Add first
Add second
Add third
string(201) "
Hello WorldHello WorldHello World
"