#32199 [Opn->Fbk]: php-cgi hanging
| From: | sniper@php.net | Date: | Tue, 22 Mar 2005 17:42:14 +0000 |
| Subject: | #32199 [Opn->Fbk]: php-cgi hanging | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76846@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:
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
There was some thread issue fixed.
Previous Comments:
------------------------------------------------------------------------
[2005-03-22 01:23:34] valenok at gmail dot com
Please read carefully the debug report.
Web server is not involved here, so what httpd.conf you are talking
about ?
I am running php-cgi from the command line, giving the filename as an
argument.
php-cgi then hangs sometimes, after showing the output.
I beleive, this is the real cause of the problems reported by the other
people, when Xitami + php, IIS + PHP do not work.
------------------------------------------------------------------------
[2005-03-22 01:19:09] valenok at gmail dot com
removing hashbang makes no difference.
Please note that that hanging happens not on any machine.
I have win2000 in my network, that can run "php-cgi test.php" in an
infinite loop for days without any hanging, so that problem is not
repeatable on that machine.
And, since it is happening with php 4.3 and 5.0.2, (so I assume with
any version of php), it is quite 'fundamental', so does exist for a
long time. Problems that other people reported (with xitami, IIS
hangup) confirm that assumption.
What can I do to debug that problem ?
Can I switch on tracing of resource allocation, and stuff like that ?
Are there debug binary releases available ?
------------------------------------------------------------------------
[2005-03-21 08:27:24] sniper@php.net
Try removing the hashbang line ( #!php-cgi ) from the script.
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
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