From ad61a18a2e6e28f2177e1ffa57b00726203c1f56 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 23 Dec 2005 20:26:41 +0000 Subject: [PATCH] - MFH Add new test --- ext/simplexml/tests/bug35785.phpt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 ext/simplexml/tests/bug35785.phpt 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 + + -- 2.40.0