From 3be17e4f6628a3db260bf4c13d56219bc4cb2010 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Thu, 28 Feb 2008 17:38:04 +0000 Subject: [PATCH] count() before and after a simplexml array cast should be the same --- ext/simplexml/tests/034.phpt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 ext/simplexml/tests/034.phpt diff --git a/ext/simplexml/tests/034.phpt b/ext/simplexml/tests/034.phpt new file mode 100755 index 0000000000..8a783aae5c --- /dev/null +++ b/ext/simplexml/tests/034.phpt @@ -0,0 +1,22 @@ +--TEST-- +SimpleXML: array casting bug +--SKIPIF-- + +--FILE-- + + +

Blah 1

+

Blah 2

+

Blah 3

+ Blah 4 +
+'; +$foo = simplexml_load_string($string); +$p = $foo->bar->p; +echo count($p); +$p = (array)$foo->bar->p; +echo count($p); +?> +--EXPECTF-- +33 -- 2.50.1