--TEST-- Bug #35785 (SimpleXML memory read error) --SKIPIF-- --FILE-- "); $xml->bla->posts->name = "FooBar"; echo $xml->asXML(); echo "===FAIL===\n"; $xml = simplexml_load_string(b""); $count = count($xml->bla->posts); var_dump($count); $xml->bla->posts[++$count]->name = "FooBar"; echo $xml->asXML(); ?> ===DONE=== --EXPECTF-- FooBar ===FAIL=== int(0) Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference in %sbug35785.php on line %d