From:             suzanne at smkelly dot com
Operating system: NT4 sp6a
PHP version:      5.0.0
PHP Bug Type:     BC math related
Bug description:  bcpow crashes apache (PHP 5.0.0)

Description:
------------
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\"
extension=php_mysql.dll
sendmail_from = [EMAIL PROTECTED]

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

-- 
Edit bug report at http://bugs.php.net/?id=29384&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29384&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29384&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29384&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29384&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29384&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29384&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29384&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29384&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29384&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29384&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29384&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29384&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29384&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29384&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29384&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29384&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29384&r=float

Reply via email to