--TEST-- GH-16338 (Null-dereference in ext/dom/node.c) --EXTENSIONS-- dom --CREDITS-- chibinz --FILE-- prepend($com); $com->before("Z"); $com->before($com2); $com2->after($elem); $doc->insertBefore($elem2); $elem->insertBefore($ref); echo $doc->saveXML(); ?> --EXPECT-- Zo&G;