--TEST-- Bug #37456 (DOMElement->setAttribute() loops forever) --EXTENSIONS-- dom --FILE-- resolveExternals = true; $doc->load(__DIR__."/dom.xml"); $root = $doc->getElementsByTagName('foo')->item(0); $root->setAttribute('bar', '>'); $attr = $root->setAttribute('bar', 'newval'); print $attr->nodeValue; ?> --EXPECT-- newval