#25797 [Com]: Running the php cli more than once at the same command line causes it to hang.

From: Date: Mon, 19 Jan 2004 06:18:28 +0000
Subject: #25797 [Com]: Running the php cli more than once at the same command line causes it to hang.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53564@lists.php.net to get a copy of this message
ID: 25797 Comment by: kadaki2 at hotmail dot com Reported By: brian at centurionservice dot com Status: Bogus Bug Type: CGI related Operating System: Windows XP Pro PHP Version: 4.3.3 New Comment: I am having the same problem with 4.3.4, 4.3.5RC1, and php4-win32-STABLE-200401190530. It appears to be a problem with running php too quickly after returning to the command line. If I run "C:\PHP>php -l -f "somelargefile.php" and then wait a few seconds to run it again, it works fine. If I run the command twice in a row without waiting, php hangs after it returns the results of the syntax check. I can use Task Manager to kill the process and continue on (since it hangs after it returns the results,) but when trying to check a whole source tree it's not practical. Previous Comments: ------------------------------------------------------------------------ [2003-10-09 06:45:13] sniper@php.net Works fine for me using latest STABLE CVS snapshot. ------------------------------------------------------------------------ [2003-10-08 12:29:28] brian at centurionservice dot com Description: ------------ I am not running a webserver, this is for command line scripting only. Running the PHP CLI binary more than once on the same command line causes it to hang. For example, running "C:\php\cli>php -v" twice in a row causes the executable to hang. Also, running "C:\php\cli>php testfile.php" twice also causes it to hang. Sourcecode of the test file was simple <? echo "test\n"; ?>. Running "php -h" multiple times in a row will not cause the problem. I have tested this using the CGI binary as well and received the same results. Same results were achieved with 4.3.4RC1 as well. Reproduce code: --------------- not applicable Expected result: ---------------- return to command line Actual result: -------------- program hangs. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25797&edit=1

« previous php.bugs (#53564) next »