1--TEST--
2DOMDocument::createAttributeNS() with prefix name conflict - setAttributeNode variation (DOM Level 3), mixed
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$doc = new DOMDocument();
9$doc->appendChild($doc->createElement('container'));
10
11var_dump($doc->documentElement->setAttributeNode($doc->createAttributeNS('http://php.net/ns1', 'foo:hello'))?->namespaceURI);
12var_dump($doc->documentElement->setAttributeNode($doc->createAttributeNS('http://php.net/ns1', 'hello'))?->namespaceURI);
13echo $doc->saveXML(), "\n";
14
15?>
16--EXPECT--
17NULL
18string(18) "http://php.net/ns1"
19<?xml version="1.0"?>
20<container xmlns:foo="http://php.net/ns1" foo:hello=""/>
21