com php-src: UPGRADING for Integer Semantics: UPGRADING
| From: | ajf@php.net | Date: | Sat, 20 Sep 2014 23:47:25 +0000 |
| Subject: | com php-src: UPGRADING for Integer Semantics: UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81828@lists.php.net to get a copy of this message | ||
Commit: 16404d0cac820ccf0027e4cc3c15fa5573e75317
Author: Andrea Faulds <ajf@ajf.me> Sun, 21 Sep 2014 00:47:25 +0100
Parents: 12b15e5ca4ae7ebf6e50551a4c666ece97068074
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=16404d0cac820ccf0027e4cc3c15fa5573e75317
Log:
UPGRADING for Integer Semantics
Changed paths:
M UPGRADING
Diff:
diff --git a/UPGRADING b/UPGRADING
index 7468ab6..edd55b4 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -21,6 +21,15 @@ PHP X.Y UPGRADE NOTES
1. Backward Incompatible Changes
========================================
+- Core
+ . Bitwise shifts by negative numbers of bits are disallowed (throws E_WARNING
+ and gives FALSE, like a division by zero).
+ . Left bitwise shifts by a number of bits beyond the bit width of an integer
+ will always result in 0, even on CPUs which wrap around.
+ . Right bitwise shifts by a number of bits beyond the bit width of an integer
+ will always result in 0 or -1 (depending on sign), even on CPUs which wrap
+ around.
+
- DBA
. dba_delete() now returns false if the key was not found for the inifile
handler, too.
@@ -100,5 +109,9 @@ PHP X.Y UPGRADE NOTES
13. Other Changes
========================================
+- Core
+ . Instead of being undefined and platform-dependant, NaN and Infinity will
+ always be zero when casted to integer.
+
- Standard
. call_user_method() and call_user_method_array() no longer exists.