From 995eaea8640022c0337a0e5d1bcab4a9df92d8e2 Mon Sep 17 00:00:00 2001 From: Andrea Faulds Date: Tue, 5 Sep 2017 18:14:58 +0000 Subject: [PATCH] Update bitwise shift warning for PHP 7.0 changes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343009 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/language/operators.xml b/language/operators.xml index db8693fe18..96c5d8a4a2 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1220,10 +1220,11 @@ Expression: 0 = -4 << 62 - Shifting integers by values greater than or equal to the system long - integer width results in undefined behavior. In other words, don't shift - more than 31 bits on a 32-bit system, and don't shift more than 63 bits on - a 64-bit system. + Prior to PHP 7.0, shifting integers by values greater than or equal to the + system long integer width, or by negative numbers, results in undefined + behavior. In other words, if you're using PHP 5.x, don't shift more than 31 + bits on a 32-bit system, and don't shift more than 63 bits on 64-bit + system. Use functions from the gmp extension for