php.net |  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
Votes:1
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
 [2003-11-13 17:46 UTC] 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.

Patches

Pull Requests

History

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] iliaa@php.net
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 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] wez@php.net
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] sniper@php.net
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: Sat Dec 21 13:01:31 2024 UTC