|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26245 COM Hangs PHP Script
Submitted: 2003-11-13 17:46 UTC Modified: 2003-12-04 02:27 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: scarr at progbits dot com Assigned: wez (profile)
Status: No Feedback Package: COM related
PHP Version: 5CVS OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
37 - 15 = ?
Subscribe to this entry?

 [2003-11-13 17:46 UTC] scarr at progbits dot com
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  I haven't made any compile changes.

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-13 17:48 UTC] 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 19:39 UTC]
Please try using this CVS snapshot:
For Windows:

 [2003-11-13 22:37 UTC] 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-28 09:16 UTC]
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.

 [2003-12-04 02:27 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 13:01:30 2024 UTC