#27354 [Opn->Asn]: Modulus operator crashes PHP

From: Date: Sun, 22 Feb 2004 19:35:44 +0000
Subject: #27354 [Opn->Asn]: Modulus operator crashes PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-55321@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: Open +Status: Assigned Bug Type: Reproducible crash Operating System: WinXP PHP Version: Irrelevant -Assigned To: +Assigned To: derick New Comment: Also gives a floating point error on linux; will fix. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#55321) next »