From: Bob Weinand Date: Mon, 6 Jul 2015 16:09:36 +0000 (+0200) Subject: Rectify information about invalid shift warning being now ArithmeticError X-Git-Tag: php-7.0.0beta1~12^2~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23242fd61dea807c2194963d6abfa1b50b4ca0c3;p=php Rectify information about invalid shift warning being now ArithmeticError --- 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: