--TEST-- Bug #35785 (SimpleXML memory read error) --SKIPIF-- --FILE-- "); $xml->bla->posts->name = "FooBar"; echo $xml->asXML(); $xml = simplexml_load_string(""); var_dump(isset($xml->bla->posts)); $xml->bla->posts[0]->name = "FooBar"; echo $xml->asXML(); $xml = simplexml_load_string(""); $xml->bla->posts[]->name = "FooBar"; echo $xml->asXML(); ?> --EXPECT-- FooBar bool(false) FooBar FooBar