#32199 [Opn->Fbk]: php-cgi hanging
| From: | sniper@php.net | Date: | Sun, 06 Mar 2005 15:27:37 +0000 |
| Subject: | #32199 [Opn->Fbk]: php-cgi hanging | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74906@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
+PHP Version: 5CVS-2005-03-05
New Comment:
Exactly how have you configured PHP in httpd.conf ??
Previous Comments:
------------------------------------------------------------------------
[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 ?
------------------------------------------------------------------------
[2005-03-06 16:13:12] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-03-06 14:34:48] valenok at gmail dot com
basically, the best way to test it is to make a
simple script that runs "php-cgi.exe test.php"
in an infinite loop.
Eventually, it will stuck.
------------------------------------------------------------------------
[2005-03-05 15:35:46] valenok at gmail dot com
Description:
------------
i wrote a simple script, test.php which
does echo 'hello world'.
I start cmd.exe, and run "php-cgi test.php".
It returns normal HTML output, as suspected.
But if I do run the same line again and again,
it occasionally hangs. It shows the output, right,
but hangs so only task manager can kill php-cgi process.
pressing Ctrl-C, Ctrl-Z does not help.
This happens if I export CGI-specific variables as well.
path to php-cgi is set to global Path environment variable.
Why does it happen, and why does it happen unpredictably ?
Also, the same situation is with php.exe from 4.3 branch.
Reproduce code:
---------------
#!php-cgi
<html>
<?
echo 'hello words!';
?>
</html>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32199&edit=1