#29491 [NEW]: php crashes when dividing 0
| From: | florian dot wolfsjaeger at chello dot at | Date: | Mon, 02 Aug 2004 11:30:08 +0000 |
| Subject: | #29491 [NEW]: php crashes when dividing 0 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-63925@lists.php.net to get a copy of this message | ||
From: florian dot wolfsjaeger at chello dot at
Operating system: WinXP SP1
PHP version: 5.0.0
PHP Bug Type: BC math related
Bug description: php crashes when dividing 0
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 bug report at http://bugs.php.net/?id=29491&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29491&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29491&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29491&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29491&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29491&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29491&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29491&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29491&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29491&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29491&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29491&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29491&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29491&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29491&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29491&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29491&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29491&r=float