com php-src: Rectify information about invalid shift warning being now ArithmeticError: UPGRADING

From: Date: Mon, 06 Jul 2015 16:09:36 +0000
Subject: com php-src: Rectify information about invalid shift warning being now ArithmeticError: UPGRADING
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87768@lists.php.net to get a copy of this message
Commit: 23242fd61dea807c2194963d6abfa1b50b4ca0c3 Author: Bob Weinand <bobwei9@hotmail.com> Mon, 6 Jul 2015 18:09:36 +0200 Parents: a919fe86061b8e68fd4910a61fe7c9eee9151424 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=23242fd61dea807c2194963d6abfa1b50b4ca0c3 Log: Rectify information about invalid shift warning being now ArithmeticError Changed paths: M UPGRADING Diff: diff --git a/UPGRADING b/UPGRADING index 6ae9b52..5defcfc 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:

« previous php.cvs (#87768) next »