Doc #73207 [Ana->Csd]: Array ordering is same between 5.6.21 and 7.1.0 RC3
| From: | cmb@php.net | Date: | Mon, 03 Oct 2016 16:57:13 +0000 |
| Subject: | Doc #73207 [Ana->Csd]: 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-13982@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
+Status: Closed
Type: Documentation Problem
Package: Arrays related
PHP Version: 7.1.0RC3
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5b52d5acde35d01b774a459b3978a9c5da2c64ab
Log: Fix #73207: Array ordering is same between 5.6.21 and 7.1.0 RC3
Previous Comments:
------------------------------------------------------------------------
[2016-10-03 08:12:06] cmb@php.net
> 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.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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