#28829 [Com]: empty parameters cause crash
ID: 28829
Comment by: chris at leftbrained dot org
Reported By: rashid at ds dot pg dot gda dot pl
Status: Open
Bug Type: BC math related
Operating System: win 2k3
PHP Version: 5CVS-2004-06-18 (dev)
New Comment:
I'm still experiencing this issue, exactly as described, using a build
from this mornings CVS.
I'm using Apache2 and Windows 2k Pro, with PHP compiled as a module,
and lib_mysql and lib_mysqli in use.
I'm available for any tests that might be necessary, though I'm not
comfortable compiling PHP on Windows.
Previous Comments:
------------------------------------------------------------------------
[2004-06-28 01:19:54] rashid at ds dot pg dot gda dot pl
some more precise info
in above example: $total = $temp = 0
i tried other settings:
$total = $temp = '0' still caused error.
$total = $temp = '0.0' worked fine
hope this info helps - it looks like some kind of variable type
conversion problems
------------------------------------------------------------------------
[2004-06-18 14:36:44] 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']
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28829&edit=1
Thread (4 messages)