<?xml version="1.0"?>
<foo xmlns:f="urn:foo" f:foo="bar"/>
object(DOMNameSpaceNode)#3 (10) {
["nodeName"]=>
string(7) "xmlns:f"
["nodeValue"]=>
string(7) "urn:foo"
["nodeType"]=>
int(18)
["prefix"]=>
string(1) "f"
["localName"]=>
string(1) "f"
["namespaceURI"]=>
string(7) "urn:foo"
["isConnected"]=>
bool(true)
["ownerDocument"]=>
string(22) "(object value omitted)"
["parentNode"]=>
string(22) "(object value omitted)"
["parentElement"]=>
string(22) "(object value omitted)"
}
Fatal error: Uncaught TypeError: DOMElement::removeAttributeNode(): Argument #1 ($attr) must be of type DOMAttr, DOMNameSpaceNode given in /in/jkC5s:14
Stack trace:
#0 /in/jkC5s(14): DOMElement->removeAttributeNode(Object(DOMNameSpaceNode))
#1 {main}
thrown in /in/jkC5s on line 14
Process exited with code 255.
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.3.28
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.3.28)
/bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.3.28)
/bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
Process exited with code 1.
<?xml version="1.0"?>
<foo xmlns:f="urn:foo" f:foo="bar"/>
object(DOMNameSpaceNode)#3 (8) {
["nodeName"]=>
string(7) "xmlns:f"
["nodeValue"]=>
string(7) "urn:foo"
["nodeType"]=>
int(18)
["prefix"]=>
string(1) "f"
["localName"]=>
string(1) "f"
["namespaceURI"]=>
string(7) "urn:foo"
["ownerDocument"]=>
string(22) "(object value omitted)"
["parentNode"]=>
string(22) "(object value omitted)"
}
Fatal error: Uncaught TypeError: Argument 1 passed to DOMElement::removeAttributeNode() must be an instance of DOMAttr, instance of DOMNameSpaceNode given in /in/jkC5s:14
Stack trace:
#0 /in/jkC5s(14): DOMElement->removeAttributeNode(Object(DOMNameSpaceNode))
#1 {main}
thrown in /in/jkC5s on line 14
Process exited with code 255.