mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
9e0f39d5d5
commit
995eaea864
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue