From bb37144d38260cd2c550cd0b8eb832698eea010d Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Tue, 26 Jun 2001 12:46:26 +0000 Subject: [PATCH] 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 --- language/types.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/language/types.xml b/language/types.xml index 032b73a19d..dffcf87ca9 100644 --- a/language/types.xml +++ b/language/types.xml @@ -334,6 +334,16 @@ var_dump($large_number); // output: float(50000000000) + + + 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 + -50000 * $million, the result will be + -429496728. + +