From:             timjensen at rtsports dot com
Operating system: Win2k
PHP version:      4.3.5RC2
PHP Bug Type:     COM related
Bug description:  Fails to Create COM Object at 2400 Pages Served

Description:
------------
OS: Windows 2000 Server SP4
Server Version: Apache/1.3.27 (Win32) mod_gzip/1.3.26.1a PHP/4.3.5RC2

Using a Visual Basic created COM object with PHP 4.3.5RC2, I always get
the following error after 2400 or so pages served:

Warning: (null)(): Unable to obtain IDispatch interface for CLSID
{0FE9E8B0-1AA7-4929-83FA-A5441A445D90}: CoInitialize has not been called.
in f:\rtff\php\test.php on line 9

Here is the simple test code I use to replicate the problem:

  $vb = new COM("gatewaysoftware.Tax");
  echo "<h3>" . $vb->Compute($STATE) . "</h3>\n";
  $vb->Release();
  $vb = null;

With PHP 4.2.1 this problem does not occur and millions of pages can be
served with the exact same PHP code, COM
object, and php.ini without the problem appearing.

ab (Apache Bench) can be used to replicate the problem in seconds.   





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

Reply via email to