From: Rasmus Lerdorf Date: Thu, 28 Feb 2008 17:39:08 +0000 (+0000) Subject: MFB X-Git-Tag: RELEASE_2_0_0a1~292 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a30239eb7ee3a4d65ee4459756a3e85048de918;p=php MFB --- 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