Bug #61597 [Opn->Ver]: SimpleXMLElement doesn't include both @attributes and textContent in properties

From: Date: Fri, 06 Mar 2020 16:55:48 +0000
Subject: Bug #61597 [Opn->Ver]: SimpleXMLElement doesn't include both @attributes and textContent in properties
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225928@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61597&edit=1

 ID:                 61597
 Updated by:         cmb@php.net
 Reported by:        drgroove at gmail dot com
 Summary:            SimpleXMLElement doesn't include both @attributes
                     and textContent in properties
-Status:             Open
+Status:             Verified
 Type:               Bug
 Package:            SimpleXML related
 Operating System:   Mac OS X
 PHP Version:        5.3.10
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2015-09-09 01:32:44] cmb@php.net

> This has been reported and closed as a duplicate before, but I
> think that was mistaken, as we don't have an open bug for this
> at present that I can find.

There is bug #44973, which has been closed as not a bug.

------------------------------------------------------------------------
[2015-04-28 17:06:50] tlesher at mtadistributors dot com

Just by way of a note, this problem is still occurring in PHP 5.5.24.

------------------------------------------------------------------------
[2012-11-26 22:37:04] dbai at drivenbi dot com

Is there any update on this one? A 3rd party PHP library I'm using has a defect 
which, I think, is caused by this problem because the phenomenon is that attribute 
in the XML node is not loaded, and that XML node happens to have text content.

------------------------------------------------------------------------
[2012-07-04 16:31:48] hugh at infomenta dot com

I am having exactly the same problem and it is not feasible to add an extra tag to all of my
"text" entries.

------------------------------------------------------------------------
[2012-04-13 01:59:42] aharvey@php.net

Ah, I see what you're getting at now. Thanks. It appears to be an issue with the 
get_properties and get_debug_info handlers for SimpleXMLElement.

This has been reported and closed as a duplicate before, but I think that was 
mistaken, as we don't have an open bug for this at present that I can find.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=61597


--
Edit this bug report at https://bugs.php.net/bug.php?id=61597&edit=1


Thread (13 messages)

« previous php.bugs (#225928) next »