Doc #73057 [Csd]: Casting a SimpleXMLElement to an array does NOT exhibit differing behavior
| From: | cmb@php.net | Date: | Fri, 09 Sep 2016 15:54:46 +0000 |
| Subject: | Doc #73057 [Csd]: Casting a SimpleXMLElement to an array does NOT exhibit differing behavior | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13892@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73057&edit=1
ID: 73057
Updated by: cmb@php.net
Reported by: brian dot mcclure at adition dot com
Summary: Casting a SimpleXMLElement to an array does NOT
exhibit differing behavior
Status: Closed
Type: Documentation Problem
Package: SimpleXML related
Operating System: Ubuntu 16.04
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> to clarify, this only occurs when attempting to cast a child
> node of a SimpleXMLElement that has multiple children with the
> same name?
I believe that is the only difference, but I'm not really sure
about it. Anyhow, the relevant commit is
<https://github.com/php/php-src/commit/1e3b32c7>.
Previous Comments:
------------------------------------------------------------------------
[2016-09-09 14:24:59] brian dot mcclure at adition dot com
Thanks for the quick responses.
to clarify, this only occurs when attempting to cast a child node of a SimpleXMLElement that has
multiple children with the same name?
Are there any other scenarios?
------------------------------------------------------------------------
[2016-09-09 13:45:40] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
------------------------------------------------------------------------
[2016-09-09 13:45:15] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=340007
Log: Fix #73057: Casting a SimpleXMLElement to an array does NOT exhibit differing behavior
------------------------------------------------------------------------
[2016-09-09 13:24:26] cmb@php.net
The former behavior was sometimes buggy, and the respective change
was merely a bugfix. See <https://3v4l.org/5dQ0S> for a
case where
the behavior was different before and after PHP 5.4.
I think the documentation should be improved to emphasize the
word "always".
------------------------------------------------------------------------
[2016-09-09 12:50:47] brian dot mcclure at adition dot com
fixed typo in summary
------------------------------------------------------------------------
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=73057
--
Edit this bug report at https://bugs.php.net/bug.php?id=73057&edit=1