ID: 44994
Comment by: brem at martinbreton dot com
Reported By: dbarrett at vistaprint dot com
Status: Assigned
Bug Type: Program Execution
Operating System: win32 only - 2003 Server, 64-bit
PHP Version: 5.2.6
Assigned To: pajoye
New Comment:
If that's any help, I'm using a COM object as a workaround for this
bug, and while it makes this bug appear less frequently, it still
happens, randomly, from time to time.
Here's what i did as a workaround using the exec() function call:
$WshShell = new COM("WScript.Shell");
$OutputFile = "C:\\Temp\\output.txt";
$Command = "cmd /C MyApp.exe > $OutputFile";
$WshShell->Run( $Command, 0, true );
file_get_contents( $OutputFile ) );
unlink( $OutputFile );
Previous Comments:
------------------------------------------------------------------------
[2008-11-18 08:46:34] bernd dot ebert at gmx dot net
Same Problem here with an commandline-script calling other
php-commandline-scripts. It seems to happen more frequently if you have
a lot of exec-calls.
------------------------------------------------------------------------
[2008-08-19 02:58:37] jkflash at gmail dot com
Sorry, I take that last comment back, it still hangs annoyingly
intermittently with shell_exec as well. It's a killer :(
------------------------------------------------------------------------
[2008-08-13 01:08:19] jkflash at gmail dot com
PS: shell_exec() DOES seem to work without hanging on my setup, but
none of the others.
------------------------------------------------------------------------
[2008-08-12 23:50:58] jkflash at gmail dot com
I am experiencing this same problem with PHP 5.2.1 running on IIS as an
ISAPI module on Windows Server 2003 R2 SP2. Intermitently (a handful of
times in a hundred) a process started with exec() will appear to
complete ok but remain running in a zombie state. The IIS worker process
that created the process will not respond to any further requests. I
need to either open a new client browser or kill the worker process.
I get the same result with system, passthru, p_open and proc_open.
------------------------------------------------------------------------
[2008-07-29 15:03:40] nobody at dontsendmespam dot com
i can reproduce this problem on a debian server with apache2 and
php5.2.6 running as fcgi
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/44994
--
Edit this bug report at http://bugs.php.net/?id=44994&edit=1