PHP :: Bug #28829 :: empty parameters cause crash
| Bug #28829 | empty parameters cause crash | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2004-06-18 14:36 UTC | Modified: | 2004-07-14 02:16 UTC |
|
||||||||||
| From: | rashid at ds dot pg dot gda dot pl | Assigned: | ||||||||||||
| Status: | Closed | Package: | BC math related | |||||||||||
| PHP Version: | 5CVS-2004-06-18 (dev) | OS: | win 2k3 | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2004-06-18 14:36 UTC] rashid at ds dot pg dot gda dot pl
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']
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-06-28 01:19 UTC] rashid at ds dot pg dot gda dot pl
[2004-07-13 22:41 UTC] chris at leftbrained dot org
[2004-07-14 02:16 UTC] pollita@php.net