From 23242fd61dea807c2194963d6abfa1b50b4ca0c3 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Mon, 6 Jul 2015 18:09:36 +0200 Subject: [PATCH] Rectify information about invalid shift warning being now ArithmeticError --- UPGRADING | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UPGRADING b/UPGRADING index 6ae9b52e99..5defcfc10e 100644 --- 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: -- 2.50.1