--TEST--
Bug #80602 (Segfault when using DOMChildNode::before()) - after text merge variation
--EXTENSIONS--
dom
--FILE--
loadXML('foobar');
$foo = $doc->firstChild->firstChild;
$bar = $doc->firstChild->lastChild;
$foo->after($bar);
var_dump($doc->saveXML());
$foo->nodeValue = "x";
var_dump($doc->saveXML());
$bar->nodeValue = "y";
var_dump($doc->saveXML());
?>
--EXPECT--
string(43) "
foobar
"
string(41) "
xbar
"
string(39) "
xy
"