diff options
| author | Bob Weinand <bobwei9@hotmail.com> | 2014-04-13 11:38:52 +0200 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2014-04-13 11:38:52 +0200 |
| commit | a3eafe535f0456b2f7bbbfe4dd86ffe20b5e724b (patch) | |
| tree | aad8888cd2f452e695cafb53f2fc6a903e654788 | |
| parent | fb5d5d9700556846d5a8259403fe2628bd10fe3e (diff) | |
| download | php-git-a3eafe535f0456b2f7bbbfe4dd86ffe20b5e724b.tar.gz | |
Added UPGRAING notice for bug #66015 in BC break section
| -rwxr-xr-x | UPGRADING | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -20,6 +20,21 @@ PHP 5.6 UPGRADE NOTES 1. Backward Incompatible Changes ======================================== +- Core: + By fixing bug #66015 it is no longer possible to overwrite keys in static scalar + arrays. Quick example to illustrate: + class Test { + const FIRST = 1; + public $array = array( + self::FIRST => 'first', + 'second', + 'third' + ); + } + Test::$array will have as expected three array keys (1, 2, 3) and no longer + two (0, 1). self::FIRST will no longer overwrite 'third' having key 1 then, + but will mark the beginning of indexing. + - JSON: json_decode() no longer accepts non-lowercase variants of lone JSON true, false or null values. For example, True or FALSE will now cause json_decode to |
