Doc #73207 [Ana]: Array ordering is same between 5.6.21 and 7.1.0 RC3
| From: | cmb@php.net | Date: | Mon, 03 Oct 2016 08:12:08 +0000 |
| Subject: | Doc #73207 [Ana]: Array ordering is same between 5.6.21 and 7.1.0 RC3 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13979@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73207&edit=1
ID: 73207
Updated by: cmb@php.net
Reported by: tuyen-truong at cybozu dot vn
Summary: Array ordering is same between 5.6.21 and 7.1.0 RC3
Status: Analyzed
Type: Documentation Problem
Package: Arrays related
PHP Version: 7.1.0RC3
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> You mean that after this bug is fixed, the array order will be
> same as php 5.6 series, is that right?
Unfortunately, #71539 can't be fixed for BC reasons, so PHP 7.0
will keep the other ordering.
Previous Comments:
------------------------------------------------------------------------
[2016-10-03 04:37:02] tuyen-truong at cybozu dot vn
I see that related bug has been reopened(bug #71539).
You mean that after this bug is fixed, the array order will be same as php 5.6 series, is that
right?
------------------------------------------------------------------------
[2016-09-30 10:48:21] cmb@php.net
Okay; I think that a respective note in UPGRADING is appropriate.
FTR: see bug #71539.
------------------------------------------------------------------------
[2016-09-30 10:41:12] nikic@php.net
The change is intentional. We found that we cannot support the evaluation order in PHP 7.0 in a way
that is memory-safe in certain edge-cases, so we had to go back to the previous ordering. (However,
evaluation of side-effects will still occur in left-to-right order.)
------------------------------------------------------------------------
[2016-09-30 09:57:48] cmb@php.net
Indeed, the behavior changed again as of PHP 7.1.0beta1, see
<https://3v4l.org/BPNL3>. Not sure if that is a bug or
rather a
documentation issue.
------------------------------------------------------------------------
[2016-09-30 09:33:38] yohgaki@php.net
Behavior changed between 7.1.0 alpha3 and 7.1.0 beta1.
https://3v4l.org/TiMHY
------------------------------------------------------------------------
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=73207
--
Edit this bug report at https://bugs.php.net/bug.php?id=73207&edit=1