]> granicus.if.org Git - php/commitdiff
Rectify information about invalid shift warning being now ArithmeticError
authorBob Weinand <bobwei9@hotmail.com>
Mon, 6 Jul 2015 16:09:36 +0000 (18:09 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 6 Jul 2015 16:09:36 +0000 (18:09 +0200)
UPGRADING

index 6ae9b52e9934d7da5ecd360fa4e26b002da7d358..5defcfc10e094780c9a1a58107b8918a714d8306 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -255,10 +255,10 @@ Changes to integer handling
   ignored. As such $i previously held the value 7, because the last two digits
   were silently discarded.
 
-* Bitwise shifts by negative numbers will now throw a warning and return false:
+* Bitwise shifts by negative numbers will now throw an ArithmeticError:
 
-      var_dump(1 >> -1); // bool(false)
-      // Warning: Bit shift by negative number
+      var_dump(1 >> -1);
+      // ArithmeticError: Bit shift by negative number
 
 * Left bitwise shifts by a number of bits beyond the bit width of an integer
   will always result in 0: