|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29384 bcpow crashes apache (PHP 5.0.0)
Submitted: 2004-07-26 09:29 UTC Modified: 2004-07-28 03:24 UTC
From: suzanne at smkelly dot com Assigned:
Status: Closed Package: BC math related
PHP Version: 5.0.0 OS: NT4 sp6a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: suzanne at smkelly dot com
New email:
PHP Version: OS:


 [2004-07-26 09:29 UTC] suzanne at smkelly dot com
the bcpow example in the manual crashes apache 2.0.44 (using php5apache2.dll)

apache crashes with access violation

not unique to manual example
other uses of bcpow do the same thing

using php.ini-recommended, with just a few changes, namely:

display_errors = On
display_startup_errors = On
log_errors = Off
extension_dir = "E:\php5.0.0\ext\"
sendmail_from =

bcpow works ok with PHP 4.3.0, same computer, same web server.

this is a stable server that has been running for a long time

Reproduce code:
echo bcpow(4.2, 3, 2); // 74.08

Expected result:
display 74.08

Actual result:
apache/php crashes


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-27 14:36 UTC]
Please try using this CVS snapshot:
For Windows:

Could you also try to run the same code with PHP-CLI?
I can't reproduce it witn under Win2k.
 [2004-07-27 20:39 UTC] suzanne at smkelly dot com
The snapshot of 2004-07-27 seems to work just fine.
 [2004-07-28 03:24 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 10:01:29 2024 UTC