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: DOMNode::replaceChild(foreign node) throws Not found — Zend Wrong Document Error (ext/dom/node.c) #22711
stdlib · php-src-strict · DOM tree mutation (pillar 4)
Problem
Replacing a child with a node owned by another document must raise DOMException with message Wrong Document Error and code 4. The VM raises Not found error with code 0.
Activity
PurHur commentedon Jul 24, 2026
Closed via #22913 (same ARG_SEND dual-PropertyFetch collapse as #22710).
replaceChild($d2->documentElement->firstChild, $d1->documentElement->firstChild)now yieldscode=4 msg=Wrong Document Erroron VM+JIT. Compliance:test/compliance/cases/dom/dom_node_replacechild_wrong_document.phpt.