From: Marcus Boerger Date: Fri, 23 Dec 2005 20:26:22 +0000 (+0000) Subject: - Add new test X-Git-Tag: RELEASE_1_0_4~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69ae0635f4b01abde08088c1f56e8360ca531a1a;p=php - 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 + +