### Description The following code: ```php <?php $v1 = new DOMElement ( "xm" , "y" , "z" ); $v2 = new DOMAttr ( "v" ); $v3 = new DOMElement ( "RF" , "fV" ); $v6 = new DOMDocument ( "Av" ); $v7 = new DOMElement ( "mh" , null , "m" ); $v3 -> replaceChildren ( $v7 ); $v7 -> prepend ( $v1 ); $v6 -> insertBefore ( $v3 ); $v7 -> replaceChild ( $v2 , $v1 ); ``` Resulted in this output: ``` php: /tmp/php-asan/ext/dom/php_dom.c:2032: void dom_reconcile_ns(xmlDocPtr, xmlNodePtr): Assertion `nodep->type != XML_ATTRIBUTE_NODE' failed. ``` ### PHP Version PHP 8.5.0-dev ### Operating System _No response_
Activity
Fix phpGH-16593: Assertion failure in DOM->replaceChild
Fix GH-16593: Assertion failure in DOM->replaceChild
Merge branch 'PHP-8.2' into PHP-8.3
Merge branch 'PHP-8.3' into PHP-8.4
Merge branch 'PHP-8.4'