com php-src: Added UPGRAING notice for bug #66015 in BC break section: UPGRADING

From: Date: Sun, 13 Apr 2014 09:38:52 +0000
Subject: com php-src: Added UPGRAING notice for bug #66015 in BC break section: UPGRADING
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76823@lists.php.net to get a copy of this message
Commit:    a3eafe535f0456b2f7bbbfe4dd86ffe20b5e724b
Author:    Bob Weinand <bobwei9@hotmail.com>         Sun, 13 Apr 2014 11:38:52 +0200
Parents:   fb5d5d9700556846d5a8259403fe2628bd10fe3e
Branches:  PHP-5.6

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=a3eafe535f0456b2f7bbbfe4dd86ffe20b5e724b

Log:
Added UPGRAING notice for bug #66015 in BC break section

Bugs:
https://bugs.php.net/66015

Changed paths:
  M  UPGRADING


Diff:
diff --git a/UPGRADING b/UPGRADING
index ae73503..a46bb6e 100755
--- a/UPGRADING
+++ b/UPGRADING
@@ -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



Thread (1 message)

  • Bob Weinand
« previous php.cvs (#76823) next »