From: Rasmus Lerdorf Date: Thu, 28 Feb 2008 17:38:04 +0000 (+0000) Subject: count() before and after a simplexml array cast should be the same X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~724 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3be17e4f6628a3db260bf4c13d56219bc4cb2010;p=php count() before and after a simplexml array cast should be the same --- 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