--TEST--
Bug #35785 (SimpleXML memory read error)
--SKIPIF--
--FILE--
");
$xml->bla->posts->name = "FooBar";
echo $xml->asXML();
$xml = simplexml_load_string("");
$count = count($xml->bla->posts);
var_dump($count);
$xml->bla->posts[$count]->name = "FooBar";
echo $xml->asXML();
$xml = simplexml_load_string("");
$xml->bla->posts[]->name = "FooBar";
echo $xml->asXML();
?>
===DONE===
--EXPECTF--
FooBar
int(0)
FooBar
FooBar
===DONE===