ID:               26245
 Updated by:       [EMAIL PROTECTED]
 Reported By:      scarr at progbits dot com
-Status:           Assigned
+Status:           Feedback
 Bug Type:         COM related
 Operating System: Windows 2000
 PHP Version:      5CVS
 Assigned To:      wez
 New Comment:

Please provide two scripts (around 10 lines each) one for the COM
object (using a standard COM object that I am likely to have access to
here) and the other script that stalls.

Make sure that if you are writing your own COM objects for use in a
threaded web server that you have set the correct threading model when
you register the object, otherwise COM will serialize calls; this could
be part of your problem.



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

[2003-11-13 22:37:49] scarr at progbits dot com

I tried, but PHP5 does not seem to work with DB Library.  At least the
first couple test I tried didn't.  Kept giving me reference errors.

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

[2003-11-13 19:39:27] [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



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

[2003-11-13 17:48:42] scarr at progbits dot com

We have also found that the script will hang if you just access the
database from another script.

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

[2003-11-13 17:46:44] scarr at progbits dot com

Description:
------------
I have found that PHP will hang if a script is running the $var =
COM('anyfile.anyobject'); command while another script is being
accessed.

We have been able to consitently get PHP to lockup.

The COM script is accessing a COM VB Object.  While the other script is
saving to a SQL Database using PEAR DB Library functions.

I am using a standard PHP 4.3.4 pulled from php.net.  I haven't made
any compile changes.

Apache2
PHP 4.3.4
PEAR DB Library

Expected result:
----------------
COM Object gets instantiated and runs normally.

Actual result:
--------------
The COM Object gets hung and the script never returns.  The only way to
bring back the COM object is to restart Apache2.  In the shutdown, the
error log says it has to force shutdown a thread.  I am assuming this
is the COM Script thread.


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


-- 
Edit this bug report at http://bugs.php.net/?id=26245&edit=1

Reply via email to