#13593 [Com]: system() & exec() hang

From: Date: Mon, 12 May 2003 11:37:15 +0000
Subject: #13593 [Com]: system() & exec() hang
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39482@lists.php.net to get a copy of this message
ID: 13593 Comment by: bhart at insydesw dot com Reported By: jeremy at deadbeef dot com Status: No Feedback Bug Type: PWS related Operating System: Windows 98 / PWS PHP Version: 4.0CVS-2001-10-07 New Comment: Hi, I have downloaded PHP 4.3.1 and loaded it under Win98SE with PSW 4.0. I see the already reported problems of not being able to do anything after the system() or exec() calls. These calls seem to execute ok, but control is never returned to the PHP script, so the remote (client) hangs. I can Stop PSW, restart it, and get one more try to run the PHP file (from the remote client), after that I have to down Win98SE and start all over. I tried various things and none ever showed me any execution after the system() or exec() calls. system() does display data, but nothing from the PHP scripts after the call. Regards, -- Bob Hart Previous Comments: ------------------------------------------------------------------------ [2002-07-02 01:00:09] php-bugs at lists dot php dot net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-06-01 13:22:30] edink@php.net Could you try PHP 4.2.1 and see if the problem still persists? ------------------------------------------------------------------------ [2002-03-20 15:01:33] gpike at piocon dot com I have done extensive tests with exec() and system() using PHP 4.1.2 under Win 98 (and 2000) and experience problems as well. I attempted to start a console process from PHP and return with a success message. I have experiemented with several possible solutions purposed under the exec() command reference including putting a "start" in the DOS command and redirecting the output to NUL. I have also attemted to start a C program that itself started the command in a forked process. All result in the exec() command hanging until the console is manually stopped. ------------------------------------------------------------------------ [2002-01-08 21:42:24] devinemke at devinemke dot com I have the exact same problem although I am running PHP 4.1.1 on WinME. I did not have this problem on PHP 4.0.6. ------------------------------------------------------------------------ [2001-10-07 22:34:24] jeremy at deadbeef dot com running any program from system() or exec() causes a console window to pop up brefly, the program runs and then the web server hangs. I am running the 4.0.8-dev build from www.php4win.de Oct 4 2001 23:30:20 in CGI mode with personal web server. To get the web server to work again afterwards, it seems I have to stop the PWS service, ctrl-alt-delete and kill all php processes, and then restart PWS. Sometimes that doesn't work and I have to reboot. There are no error messages printed anywhere, it just hangs. Any program. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=13593&edit=1

« previous php.bugs (#39482) next »