You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stdlib · php-src-strict · DOM namespace attribute regression
Problem
After DOMElement::setAttributeNS($namespace, $qualifiedName, $value), Zend returns the stored value from getAttributeNS($namespace, $localName) and hasAttributeNS() is true. On bin/vm.php, getAttributeNS() returns an empty string and hasAttributeNS() is false even though getAttribute($localName) still sees the value.
ext/dom/VmDom.php — getAttributeNS() / hasAttributeNSExact() must resolve attribute namespace from the element’s in-scope namespaces (including default NS from createElementNS()), not only xmlns:* declarations
Wire through existing ElementGetAttributeNS.php / ElementHasAttributeNS.php builtins
Activity
PurHur commentedon Jul 3, 2026
claim: PHP Compiler STD Lib Advanced — batch (issues #15380, #15381, #15345)
Fix DOM setAttributeNS namespace lookup on createElementNS elements (#…
PurHur commentedon Jul 3, 2026
Merged in #15394 —
setAttributeNS+getAttributeNS/hasAttributeNSround-trip oncreateElementNSelements verified via repro + compliance.