#27759 [Opn->Fbk]: bcadd() causes crash if first parameter is empty string
| From: | pollita@php.net | Date: | Mon, 29 Mar 2004 21:29:15 +0000 |
| Subject: | #27759 [Opn->Fbk]: bcadd() causes crash if first parameter is empty string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57056@lists.php.net to get a copy of this message | ||
ID: 27759
Updated by: pollita@php.net
Reported By: patrick at rap-x dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows XP
PHP Version: 5.0.0RC1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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