php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65592 Wrong dumping behavior of an object
Submitted: 2013-08-30 11:45 UTC Modified: 2020-03-07 10:24 UTC
From: yagmikita at gmail dot com Assigned: cmb (profile)
Status: Duplicate Package: SimpleXML related
PHP Version: 5.5.3 OS: ubuntu 13.04
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: yagmikita at gmail dot com
New email:
PHP Version: OS:

 

 [2013-08-30 11:45 UTC] yagmikita at gmail dot com
Description:
------------
http://3v4l.org/53tYG#v5414

If not selected specially, some twin child node shows no attributes when dumping 
the content of the object. This behavior could lead to wrong conclusions when one  
analyzes the visual structure of the xml.

Test script:
---------------
<?php
$xml = new SimpleXMLElement('<root><elements attr="test"><el>test1</el><el>test2</el><el test_attr="123">test3</el></elements></root>');
var_dump(
	$xml,
	$xml->elements->el[2]
);

Expected result:
----------------
I expect to observe twin child node's attributes when dumping the object


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-07 10:24 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2020-03-07 10:24 UTC] cmb@php.net
This is a duplicate of bug #61597.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC