From: rashid at ds dot pg dot gda dot pl Operating system: win 2k3 PHP version: 5CVS-2004-06-18 (dev) PHP Bug Type: BC math related Bug description: empty parameters cause crash
Description: ------------ description in http://bugs.php.net/bug.php?id=27759 describes the problem well. there is also the same problem with bcsub. its reported again because the bug is still present in latest cvs build. Reproduce code: --------------- PEAR`s Benchmark_Timer::getProfiling(): //... this is part of loop - first settings of parameters are empty, and apache throws exception right away $diff = bcsub($time, $temp, 6); $total = bcadd($total, $diff, 6); //... Actual result: -------------- apache exception ['memory cannot be read'] -- Edit bug report at http://bugs.php.net/?id=28829&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28829&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28829&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28829&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28829&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28829&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28829&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28829&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28829&r=support Expected behavior: http://bugs.php.net/fix.php?id=28829&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28829&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28829&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28829&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28829&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28829&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28829&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28829&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28829&r=float