#29491 [Csd->Fbk]: php crashes when dividing 0
| From: | tony2001@php.net | Date: | Mon, 02 Aug 2004 11:37:30 +0000 |
| Subject: | #29491 [Csd->Fbk]: php crashes when dividing 0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63929@lists.php.net to get a copy of this message | ||
ID: 29491
Updated by: tony2001@php.net
Reported By: florian dot wolfsjaeger at chello dot at
-Status: Closed
+Status: Feedback
Bug Type: BC math related
Operating System: WinXP SP1
PHP Version: 5.0.0
New Comment:
Pls, try to run the same code in console, using PHP-CLI (php.exe).
I can't reproduce it under Win2k & Linux.
Previous Comments:
------------------------------------------------------------------------
[2004-08-02 13:36:21] edink@php.net
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.
------------------------------------------------------------------------
[2004-08-02 13:30:07] florian dot wolfsjaeger at chello dot at
Description:
------------
PHP 5.0.0 crashes when dividing 0 - using bcdiv() - by any number, but
with all of the previous versions of PHP the function returned 0. I am
using the PHP-5.0.0-zip-Package on Windows XP with Apache 2.0.50 ...
PHP is installed as a module and resetting the php.ini to it's original
didn't solve the problem.
Reproduce code:
---------------
bcdiv(0,4)
Expected result:
----------------
The function should just return the integer 0.
Actual result:
--------------
PHP crashes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29491&edit=1