From: Marcus Boerger Date: Fri, 23 Dec 2005 20:26:41 +0000 (+0000) Subject: - MFH Add new test X-Git-Tag: php-5.1.2RC2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad61a18a2e6e28f2177e1ffa57b00726203c1f56;p=php - MFH Add new test --- diff --git a/ext/simplexml/tests/bug35785.phpt b/ext/simplexml/tests/bug35785.phpt new file mode 100755 index 0000000000..2c3a54d5d6 --- /dev/null +++ b/ext/simplexml/tests/bug35785.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #35785 (SimpleXML memory read error) +--FILE-- +"); +$count = count($xml->posts) + 1; +$xml->bla->posts[$count]->name = $_POST["name"]; +echo $xml->asXML(); +?> +===DONE=== + +--EXPECTF-- + +Notice: Undefined index: name in %sbug35785.phpt on line %d + +Strict Standards: Creating default object from empty value in %sbug35785.phpt on line %d + +Warning: Attempt to assign property of non-object in %sbug35785.phpt on line %d + +