note 120221 added to migration71.incompatible
| From: | love at sickpeople dot se | Date: | Thu, 24 Nov 2016 19:59:31 +0000 |
| Subject: | note 120221 added to migration71.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-207559@lists.php.net to get a copy of this message | ||
For anyone migrating from 5.x to 7.1:
About "Array ordering when elements are automatically created during by reference assignments
has changed" on this page
(http://php.net/manual/en/migration71.incompatible.php#migration71.incompatible.array-order)
The behaviour of 7.1 is THE SAME as of PHP 5. It is only 7.0 that differs.
See https://3v4l.org/frbUc
<?php
$array = [];
$array["a"] =& $array["b"];
$array["b"] = 1;
var_dump($array);
----
Server IP: 72.52.91.14
Probable Submitter: 94.198.70.171
----
Manual Page -- http://php.net/manual/en/migration71.incompatible.php
Edit -- https://master.php.net/note/edit/120221
Del: integrated -- https://master.php.net/note/delete/120221/integrated
Del: useless -- https://master.php.net/note/delete/120221/useless
Del: bad code -- https://master.php.net/note/delete/120221/bad+code
Del: spam -- https://master.php.net/note/delete/120221/spam
Del: non-english -- https://master.php.net/note/delete/120221/non-english
Del: in docs -- https://master.php.net/note/delete/120221/in+docs
Del: other reasons-- https://master.php.net/note/delete/120221
Reject -- https://master.php.net/note/reject/120221
Search -- https://master.php.net/manage/user-notes.php