#27354 [Asn->Csd]: Modulus operator crashes PHP
| From: | derick@php.net | Date: | Sun, 22 Feb 2004 19:59:57 +0000 |
| Subject: | #27354 [Asn->Csd]: Modulus operator crashes PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-55322@lists.php.net to get a copy of this message | ||
ID: 27354
Updated by: derick@php.net
Reported By: tomas dot matousek at matfyz dot cz
-Status: Assigned
+Status: Closed
Bug Type: Reproducible crash
Operating System: WinXP
PHP Version: Irrelevant
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-02-22 14:35:44] derick@php.net
Also gives a floating point error on linux; will fix.
------------------------------------------------------------------------
[2004-02-22 14:25:15] tomas dot matousek at matfyz dot cz
Description:
------------
Using modulus operator on particular numbers leads to PHP crash.
Reproduce code:
---------------
var_dump((-2147483648) % (-1));
Expected result:
----------------
0
Actual result:
--------------
CRASH
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27354&edit=1