#27209 [Opn->Fbk]: Fails to Create COM Object at 2400 Pages Served
ID: 27209
Updated by: iliaa@php.net
Reported By: timjensen at rtsports dot com
-Status: Open
+Status: Feedback
Bug Type: COM related
Operating System: Win2k
PHP Version: 4.3.5RC2
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-02-10 11:07:50] timjensen at rtsports dot com
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 this bug report at http://bugs.php.net/?id=27209&edit=1
Thread (8 messages)