1--TEST--
2DOMElement::{get,has}AttributeNS() with xmlns
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = new DOMDocument;
9$dom->loadXML('<root xmlns:a="urn:a"/>');
10
11var_dump($dom->documentElement->getAttributeNS('http://www.w3.org/2000/xmlns/', 'a'));
12var_dump($dom->documentElement->getAttributeNS('http://www.w3.org/2000/xmlns/', 'b'));
13var_dump($dom->documentElement->hasAttributeNS('http://www.w3.org/2000/xmlns/', 'a'));
14var_dump($dom->documentElement->hasAttributeNS('http://www.w3.org/2000/xmlns/', 'b'));
15
16?>
17--EXPECT--
18string(5) "urn:a"
19string(0) ""
20bool(true)
21bool(false)
22