#42872 [Opn->Bgs]: $a -= $b; is not equal to $a = $a - $b;
| From: | jani@php.net | Date: | Sat, 06 Oct 2007 00:05:34 +0000 |
| Subject: | #42872 [Opn->Bgs]: $a -= $b; is not equal to $a = $a - $b; | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118238@lists.php.net to get a copy of this message | ||
ID: 42872
Updated by: jani@php.net
Reported By: nasso dot k2 at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Math related
Operating System: Windows XP
-PHP Version: 5.2.4
+PHP Version: 5.2.3
New Comment:
I don't think there was any problem in 5.2.3 either..
Previous Comments:
------------------------------------------------------------------------
[2007-10-06 00:02:49] nasso dot k2 at gmail dot com
Problem vanished when updated to 5.2.4, probably my old 5.2.3 was
little buggy. Remove this submition, please.
------------------------------------------------------------------------
[2007-10-05 23:47:46] jani@php.net
I'm not sure what you're trying to achieve here since your reproduce
script is just nonsense. Please provide a self-contained script that
begins with '<?php' and ends with '?>' like a PHP scripts usually do.
------------------------------------------------------------------------
[2007-10-05 23:09:20] nasso dot k2 at gmail dot com
Description:
------------
$large_num -= 1000000 is not equal to $large_num = $large_num -
1000000;
Reproduce code:
---------------
$large_num = 1234567890;
while($large_num >= 1000000) $large_num -= 1000000;
Expected result:
----------------
1233567890
Actual result:
--------------
0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42872&edit=1