--TEST--
DOMElement::setAttributeNS() with prefix name conflict
--EXTENSIONS--
dom
--FILE--
loadXML('');
$dom->documentElement->setAttributeNS('http://php.net/2', 'foo:bar', 'no1');
echo $dom->saveXML();
$dom->documentElement->setAttributeNS('http://php.net/2', 'bar', 'no2');
echo $dom->saveXML();
echo "--- Default namespace test case ---\n";
$dom = new DOMDocument();
$dom->loadXML('');
$dom->documentElement->setAttributeNS('http://php.net/2', 'bar', 'no1');
echo $dom->saveXML();
$dom->documentElement->setAttributeNS('http://php.net/2', 'bar', 'no2');
echo $dom->saveXML();
?>
--EXPECT--
--- Non-default namespace test case ---
--- Default namespace test case ---