ID:               27759
 Updated by:       [EMAIL PROTECTED]
 Reported By:      patrick at rap-x dot com
-Status:           Open
+Status:           Closed
 Bug Type:         BC math related
 Operating System: win32 only
 PHP Version:      5.0.0RC1
 New Comment:

works fine for me using latest CVS snapshot.




Previous Comments:
------------------------------------------------------------------------

[2004-04-04 23:54:50] patrick at rap-x dot com

The same code causes the same problem with PHP5 RC2. Output from the
first section of phpinfo() below.

-----------------------------

PHP Version 5.0.0RC2-dev

System  Windows NT ME 5.1 build 2600

Build Date      Apr 3 2004 04:32:40

Configure Command       cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"

Server API      Apache 2.0 Handler

Virtual Directory Support       enabled

Configuration File (php.ini) Path       C:\WINDOWS\php.ini

PHP API         20031224

PHP Extension   20040316

Zend Extension  90021012

Debug Build     no

Thread Safety   enabled

IPv6 Support    enabled

Registered PHP Streams  php, file, http, ftp, compress.zlib

Registered Stream Socket Transports     tcp, udp

.............

BCMath support  enabled

------------------------------------------------------------------------

[2004-04-04 21:32:50] [EMAIL PROTECTED]

Latest snapshot



For Windows:

 

  http://snaps.php.net/win32/php5-win32-latest.zip

------------------------------------------------------------------------

[2004-04-04 20:48:23] patrick at rap-x dot com

The bug is still reproducible, on the same code base. I don't have a
windows compiler for C, so I can't try the hugely useful suggestion
from polita. 



I've commented out or replaced all instances of bcmath functions in my
code. I don't have a windows compiler for C, so I can't try the hugely
useful suggestion from polita. 



If someone can point me to some binaries I'll test them.

------------------------------------------------------------------------

[2004-03-29 16:29:14] [EMAIL PROTECTED]

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

Reply via email to