php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52994 vardump of child in SimpleXMLElement is incorrect
Submitted: 2010-10-05 23:34 UTC Modified: 2010-10-08 00:08 UTC
From: sietse dot au at gmail dot com Assigned:
Status: Not a bug Package: SimpleXML related
PHP Version: 5.3.3 OS:
Private report: No CVE-ID: None
 [2010-10-05 23:34 UTC] 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"
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-08 00:08 UTC] felipe@php.net
-Status: Open +Status: Bogus
 [2010-10-08 00:08 UTC] felipe@php.net
Related to bug #52463
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 07:05:53 2022 UTC