--TEST--
Bug #35785 (SimpleXML memory read error)
--SKIPIF--
--FILE--
");
$xml->bla->posts->name = "FooBar";
echo $xml->asXML();
echo "===FAIL===\n";
$xml = simplexml_load_string("");
$count = count($xml->bla->posts);
var_dump($count);
$xml->bla->posts[++$count]->name = "FooBar";
echo $xml->asXML();
?>
===DONE===
--EXPECTF--
FooBar
===FAIL===
int(0)
Notice: Indirect modification of overloaded element of SimpleXMLElement has no effect in %sbug35785.php on line %d
Strict Standards: Creating default object from empty value in %sbug35785.php on line %d
===DONE===