From:             valenok at gmail dot com
Operating system: windows xp professional
PHP version:      5.0.3
PHP Bug Type:     *General Issues
Bug description:  php-cgi hanging

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 bug report at http://bugs.php.net/?id=32199&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32199&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32199&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32199&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32199&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32199&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32199&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32199&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32199&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32199&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32199&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32199&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32199&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32199&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32199&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32199&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32199&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32199&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32199&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32199&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32199&r=mysqlcfg

Reply via email to