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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 - 12 = ?
Subscribe to this entry?

 
 [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: Wed Apr 24 04:01:30 2024 UTC