#27759 [Fbk->NoF]: bcadd() causes crash if first parameter is empty string
| From: | iliaa@php.net | Date: | Sun, 04 Apr 2004 18:01:17 +0000 |
| Subject: | #27759 [Fbk->NoF]: bcadd() causes crash if first parameter is empty string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57492@lists.php.net to get a copy of this message | ||
ID: 27759
Updated by: iliaa@php.net
Reported By: patrick at rap-x dot com
-Status: Feedback
+Status: No Feedback
Bug Type: Reproducible crash
Operating System: Windows XP
PHP Version: 5.0.0RC1
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2004-04-02 09:21:02] marwan at marvonline dot org
I've tested the April 1st build and it still has the problem.
This affects all the bcmath functions and happens when either of the
first two arguments evaluates to zero (this means 0, '0', and '').
I have the same setup as the original submitter.
------------------------------------------------------------------------
[2004-03-29 16:29:14] pollita@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-03-29 15:43:37] patrick at rap-x dot com
Description:
------------
The following code causes PHP5 RC1 (module)/ WINXP / Apache2 to crash.
The same code doesn't cause a crash on PHP 4.3.4 / WINXP/ IIS (CGI)
Fault discovered by using PEAR :: Benchmark
Workaround is to mess around line 230ish in pear Timer.php so that the
bcadd is not called.
Reproduce code:
---------------
$total = "0";
$diff = "";
bcadd($total, $diff, 6);
Expected result:
----------------
n/a
Actual result:
--------------
Apache2 crashes
Windows Event Log records:
Faulting application Apache.exe, version 2.0.49.0, faulting module
php5ts.dll, version 5.0.0.0, fault address 0x0003c773.
Apache error log:
Parent: child process exited with status 3221225477 -- Restarting.
[notice] Parent: Created child process 2120
[notice] Child 2120: Child process is running
[notice] Child 2120: Acquired the start mutex.
[notice] Child 2120: Starting 250 worker threads.
[notice] Parent: Created child process 2120
[notice] Child 2120: Child process is running
[notice] Child 2120: Acquired the start mutex.
[notice] Child 2120: Starting 250 worker threads.
[notice] Parent: child process exited with status 2147483649 --
Restarting.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27759&edit=1