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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 16:01:32 2024 UTC