#32199 [Opn->Fbk]: php-cgi hanging

From: Date: Mon, 21 Mar 2005 07:27:24 +0000
Subject: #32199 [Opn->Fbk]: php-cgi hanging
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75643@lists.php.net to get a copy of this message
ID: 32199 Updated by: sniper@php.net Reported By: valenok at gmail dot com -Status: Open +Status: Feedback Bug Type: CGI related Operating System: windows xp professional PHP Version: 5.0.3 New Comment: Try removing the hashbang line ( #!php-cgi ) from the script. Previous Comments: ------------------------------------------------------------------------ [2005-03-20 23:57:54] valenok at gmail dot com I start new cmd.exe session, and run: php-cgi test.php this is the content of test.php: #!php-cgi <html> <? echo 'hello words!'; ?> </html> ------------------------------------------------------------------------ [2005-03-06 16:32:00] sniper@php.net Exactly HOW do you run PHP on command line when it hangs? What script? ------------------------------------------------------------------------ [2005-03-06 16:30:28] valenok at gmail dot com The reason I am reporting is I am writing HTTP server. I have found that php pages sometimes do not 'return': browser shows the output, but spinner still spins, and php process is still running. It never happens with other CGIs - perl, python, native executables. I never happened on unix. So first thing I blamed was my server. But. I have found that it hangs directly from command line, also I have found other people reports about this kind of issue (hanging on IIS, Xitami, etc, never on Apache). This gave me a reason to suspect php itself. ------------------------------------------------------------------------ [2005-03-06 16:27:37] sniper@php.net Exactly how have you configured PHP in httpd.conf ?? ------------------------------------------------------------------------ [2005-03-06 16:24:51] valenok at gmail dot com thried the 5.1.0 snapshot. same thing. Now, it hangs every first-second time I run it. on unix (tried on freebsd) this never happens. Also, I suspect, Apache handles php right, so it does not hang. could it be the environment issue? does php manipulate with some global resource (mutex or so)? what can I do to debug it ? ------------------------------------------------------------------------ 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/32199 -- Edit this bug report at http://bugs.php.net/?id=32199&edit=1

« previous php.bugs (#75643) next »