com php-src: Fix #73207: Array ordering is same between 5.6.21 and 7.1.0 RC3: UPGRADING

From: Date: Mon, 03 Oct 2016 16:55:39 +0000
Subject: com php-src: Fix #73207: Array ordering is same between 5.6.21 and 7.1.0 RC3: UPGRADING
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94823@lists.php.net to get a copy of this message
Commit: 5b52d5acde35d01b774a459b3978a9c5da2c64ab Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 3 Oct 2016 18:55:39 +0200 Parents: 8fcc938e56f51fda3d36eae94e38cf1dd9f04f5c Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5b52d5acde35d01b774a459b3978a9c5da2c64ab Log: Fix #73207: Array ordering is same between 5.6.21 and 7.1.0 RC3 Bugs: https://bugs.php.net/73207 Changed paths: M UPGRADING Diff: diff --git a/UPGRADING b/UPGRADING index 68716cd..68f3364 100644 --- a/UPGRADING +++ b/UPGRADING @@ -80,6 +80,16 @@ PHP 7.1 UPGRADE NOTES fatal error" to "Recoverable fatal error". . The empty index operator (e.g. $str[] = $x) is not supported for strings anymore, and throws a fatal error instead of silently converting to array. + . Array elements or object properties that are automatically created during + by-reference assignments will now result in a different order. For example + + $array = []; + $array["a"] =& $array["b"]; + $array["b"] = 1; + var_dump($array); + + now results in the array ["b" => 1, "a" => 1], while for PHP 7.0 the result + was ["a" => 1, "b" => 1]. - JSON: . The serialize_precision is used instead of precision when encoding double

« previous php.cvs (#94823) next »