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
Double-removeChild of an already-detached node must throw DOMException with Zend message Not Found Error and code 8 (DOM_NOT_FOUND_ERR). The VM throws a near message (Not found error) but $e->getCode() is 0.
DOM_NOT_FOUND_ERR constant is correctly 8 on both engines — only the exception instance code (and message casing) is wrong. Sibling of open #22658 (WRONG_DOCUMENT_ERR code 0 vs 4); fix shared DOMException construction so all DOM error codes propagate.
Probed 2026-07-23 on master VM vs host Zend 8.2.32.
Activity
PurHur commentedon Jul 23, 2026
Sibling DOMException code gap: #22658 (
WRONG_DOCUMENT_ERRcode 0 vs 4). Prefer one shared DOMException constructor fix. Gate probe: see #22691 comment.PurHur commentedon Jul 23, 2026
claim: PHP Compiler STD Lib — fixing with shared DomExceptionConstants helper in same PR as #22658 (raiseNotFound / raiseWrongDocument).
Stdlib: DOMException Wrong Document / Not Found codes (#22658, #22694) (
PurHur commentedon Jul 23, 2026
Merged via PR #22712 (shared helper with #22658).
Double-
removeChildnow throwsNot Found Errorwith code8on VM/JIT.