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
{{ message }}
Repository navigation
Regression: DOMElement::$prefix / $namespaceURI null on createElementNS nodes (ext/dom/node.c) #15381
stdlib · php-src-strict · DOM namespace node properties
Problem
DOMElement nodes created with createElementNS($namespace, $qualifiedName) must expose live prefix and namespaceURI properties. Zend returns ex and http://example.com/ns for createElementNS('http://example.com/ns', 'ex:a'). This compiler leaves both properties null.
ext/dom/VmDom.php + DomNodeState — persist namespace URI + prefix when creating NS-qualified elements; expose via DOM object property reads (same path as nodeName / tagName)
PHP-in-PHP first in ext/dom/; shrink any duplicate C if present
Activity
PurHur commentedon Jul 3, 2026
Related regression filed same run: #15380 (getAttributeNS/hasAttributeNS after setAttributeNS).
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 —
prefix/namespaceURIoncreateElementNSelements green; compliance guard added.