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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sietse dot au at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 08 06:01:29 2024 UTC