mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Warned for a bug in the scripting engine. (implicite casting on negative
overflow, bug#11685) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50216 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6d6899c576
commit
bb37144d38
1 changed files with 10 additions and 0 deletions
|
@ -334,6 +334,16 @@ var_dump($large_number);
|
|||
// output: float(50000000000)
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
<warning>
|
||||
<simpara>
|
||||
Unfortunately, there is a bug in the script engine (still present in
|
||||
4.0.6, probably resolved in 4.0.7) so that this does not always work
|
||||
correctly when there are negative numbers involved. However when both
|
||||
operands are positive, there is no problem. For example: when you do
|
||||
<literal>-50000 * $million</literal>, the result will be
|
||||
<literal>-429496728</literal>.
|
||||
</simpara>
|
||||
</warning>
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
|
|
Loading…
Reference in a new issue