#26084 [Com]: exec() hangs
ID: 26084
Comment by: sbattula at inmage dot net
Reported By: karolls at tlen dot pl
Status: No Feedback
Bug Type: Program Execution
Operating System: Windows XP
PHP Version: 4.3.3
New Comment:
I am also facing the same problem with Apache 2.0.58 and PHP 5.0.4 on
Windows 2003 OS. From one of our phps, an exe called test.exe is being
invoked. Randomly, Apache hangs and we need to restart it for normal
operation. As sussgested in one of the php.net links
(http://bugs.php.net/bug.php?id=22526), I have tried using
session_write_close() before each exec call and seesion_start() after
completion of the call. But this workaround does not work as suggested.
Previous Comments:
------------------------------------------------------------------------
[2003-11-17 18:17:06] 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.
------------------------------------------------------------------------
[2003-11-03 19:03:40] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-11-02 15:51:36] karolls at tlen dot pl
Description:
------------
I'm running CGI script using the exec() function. The problem is that
sometime the cmd.exe hangs. I'm shure that my CGI script is ok.
I'm using PHP 4.3.3 and Apache 1.3.29
All result in the exec() command hanging until the console is manually
stopped. I also have to restart Apache.
I tried also other functions (system, passthru etc.) but the result is
the same.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26084&edit=1
Thread (6 messages)