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
This commit is contained in:
Andrea Faulds 2017-09-05 18:14:58 +00:00
parent 9e0f39d5d5
commit 995eaea864

View file

@ -1220,10 +1220,11 @@ Expression: 0 = -4 << 62
</para>
<warning>
<para>
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.
</para>
<para>
Use functions from the <link linkend="book.gmp">gmp</link> extension for