Bug #52994 [Opn->Bgs]: vardump of child in SimpleXMLElement is incorrect

From: Date: Thu, 07 Oct 2010 22:08:47 +0000
Subject: Bug #52994 [Opn->Bgs]: vardump of child in SimpleXMLElement is incorrect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-155003@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52994&edit=1 ID: 52994 Updated by: felipe@php.net Reported by: sietse dot au at gmail dot com Summary: vardump of child in SimpleXMLElement is incorrect -Status: Open +Status: Bogus Type: Bug Package: SimpleXML related PHP Version: 5.3.3 Block user comment: N New Comment: Related to bug #52463 Previous Comments: ------------------------------------------------------------------------ [2010-10-05 23:34:31] sietse dot au at gmail dot com Description: ------------ vardump of child in SimpleXMLElement is incorrect Test script: --------------- $obj = new SimpleXMLElement('<root> <a>1.9</a> <a>2.1</a> </root>'); var_dump($obj->a); Expected result: ---------------- object(SimpleXMLElement)#5 (1) { [0]=> string(3) "1.9" [1]=> string(3) "2.1" } Actual result: -------------- object(SimpleXMLElement)#5 (1) { [0]=> string(3) "1.9" } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52994&edit=1

« previous php.bugs (#155003) next »