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:
Jeroen van Wolffelaar 2001-06-26 12:46:26 +00:00
parent 6d6899c576
commit bb37144d38

View file

@ -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>