Bug #65592 [Opn->Dup]: Wrong dumping behavior of an object
| From: | cmb@php.net | Date: | Sat, 07 Mar 2020 10:24:40 +0000 |
| Subject: | Bug #65592 [Opn->Dup]: Wrong dumping behavior of an object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225935@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65592&edit=1
ID: 65592
Updated by: cmb@php.net
Reported by: yagmikita at gmail dot com
Summary: Wrong dumping behavior of an object
-Status: Open
+Status: Duplicate
Type: Bug
Package: SimpleXML related
Operating System: ubuntu 13.04
PHP Version: 5.5.3
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This is a duplicate of bug #61597.
Previous Comments:
------------------------------------------------------------------------
[2013-08-30 11:45:11] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65592&edit=1