2
Bug #40451 (addAttribute() may crash when used with non-existent child node)
9
<Name>host.server.com</Name>
13
$xml = simplexml_load_string($string);
15
$add = $xml->addChild('Host');
16
$add->Host->addAttribute('enable', 'true');
21
Warning: SimpleXMLElement::addAttribute(): Unable to locate parent Element in %s on line %d