From:             frankielam at ucr dot com dot hk
Operating system: Windows 2000
PHP version:      4.3.1
PHP Bug Type:     IIS related
Bug description:  The specified CGI application misbehaved by not returning a complete 
set of HTT

I find the CGI error occurs intermittently with the php script below(a
simple script that
do nothing but keeps refreshing itself with a different value of parameter
passed into it as GET, REMEMBER to open serveral instances to
run it.)

Teh message it returns is:
"CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:"

doit.php
8<-----------------------------------------------
<?
echo "<html><head><title>testing</title>";
if (isset($_GET["times"]))
        $times = ($_GET["times"]) + 1;
else
        $times = 0;

//SEE??? even i comment the statement out, infamous cgi error occurs,
STILL!
//$conn = mssql_connect('127.0.0.1', 'sa', '') or die("couldn't
connect");
echo "<meta http-equiv=\"Refresh\" content=\"0; URL=doit.php?times=" .
$times . "\"></head></html>";
echo "Trying CGI";
echo "<BR>$times";
//header("doit.php");
?>
8<-----------------------------------------------

My config.:
Windows 2000 Advanced Server with SP3
PHP 4.3.1 / 4.2.3 (both tested to have CGI problem)
P3-1G with 128MB RAM
-- 
Edit bug report at http://bugs.php.net/?id=22563&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22563&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22563&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22563&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22563&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22563&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22563&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22563&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22563&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22563&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22563&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22563&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22563&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22563&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22563&r=gnused

Reply via email to