#16411 [Com]: CGI application misbehaved by not returning a complete set of

From: Date: Mon, 08 Aug 2005 11:10:18 +0000
Subject: #16411 [Com]: CGI application misbehaved by not returning a complete set of
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83174@lists.php.net to get a copy of this message
 ID:               16411
 Comment by:       richard at eliteinternet dot net
 Reported By:      vielina at hn dot vnn dot vn
 Status:           No Feedback
 Bug Type:         MSSQL related
 Operating System: Windows 2000
 PHP Version:      4.3.0
 New Comment:

i experience this error only when using database connectivity just
before  a redirect. With alot of reading and research that contradicts,
i found that if you use 

sleep(1); //make script wait one second

just before headers being send this reduces drastically the chances of
getting this error, not a 100% fix but i would estimate about a 95%.


Previous Comments:
------------------------------------------------------------------------

[2004-12-18 00:23:18] win at ridingacrossusa dot com

I am having the same porblem, and I would like to know that anyone has
a solution for this problem.

------------------------------------------------------------------------

[2004-02-16 19:52:04] atpires at terra dot com dot br

Using FastCGI solve this problem.

------------------------------------------------------------------------

[2004-01-22 11:21:56] silvercrow13 at hotmail dot com

I've got the same problem and I can't find a solution. I'm using 2
computers as I do some work at work and at home. My configs are pretty
much the same in both computers. Both work under Win Xp SP1 Pro, IIS
5.1, PHP 4.3.4 and MySql 4.0.
This only happens at work, at home it works just fine, never had any
problem. I'm scared I will have to reinstall my system anytime for some
other reason and see this issue bothering me at home too.

Some say it is CPU speed related but I don't know. My home PC is P4
with HT and at work I use an AMD Duron based system. Doesn't seem that
relevant.

Most of the comments refer to a MSSQL issue but I use Mysql and I have
this same problem too. I read somewhere it's related to the use of
frames. I thought so but when using header redirection I encounter the
same annoying message.

I even tought of installing Apache instead of IIS but the MS web server
seems a lot less scary, I'm just a newbie. I can't find a reason for
this to happen only at my work PC. Please help

------------------------------------------------------------------------

[2004-01-15 06:58:52] abanet at pas dot ucm dot es

After a lot of time trying redirection with header
and always getting "CGI application misbehaved by not returning a
complete set of ..." error after an SQL 2000 insert instruction I tried
this with success:

print "<html><head><META HTTP-EQUIV='Refresh'
CONTENT='0;URL=url'></head></html>";

------------------------------------------------------------------------

[2003-05-12 07:23:03] pedro at fundacaounimed dot com dot br

I think I find the solution for this problem...
Just put this line "cgi.rfc2616_headers = 1" on php.ini.
Please, send us a message if it works. I had this problem during much
time and looking for solution, I saw that many others have it too.

PS.: sorry if there is some english error.

------------------------------------------------------------------------

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/16411

-- 
Edit this bug report at http://bugs.php.net/?id=16411&edit=1


Thread (33 messages)

« previous php.bugs (#83174) next »