#42872 [Opn->Fbk]: $a -= $b; is not equal to $a = $a - $b;
| From: | jani@php.net | Date: | Fri, 05 Oct 2007 23:47:47 +0000 |
| Subject: | #42872 [Opn->Fbk]: $a -= $b; is not equal to $a = $a - $b; | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118232@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: Feedback
-Bug Type: Unknown/Other Function
+Bug Type: Math related
Operating System: Windows XP
PHP Version: 5.2.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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