Bug #8571 Updated: CGI application misbehaved

From: Date: Fri, 14 Dec 2001 21:54:51 +0000
Subject: Bug #8571 Updated: CGI application misbehaved
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73853@lists.php.net to get a copy of this message
ID: 8571 Updated by: lobbin Reported By: dful@metahogar.com Old Status: Open Status: Feedback Bug Type: IIS related Operating System: Windows 2000 PHP Version: 4.0.3pl1 New Comment: Can this be reproduced with PHP 4.1.0? Previous Comments: ------------------------------------------------------------------------ [2001-01-06 12:54:03] dful@metahogar.com I get the message: --Begin of message-- CGI ERROR CGI application misbehaved by not returning a complete set of headers. The headers that it did return are: --End of message-- In three situations: 1. A random error that corresponds to a bug in PHP 4.03pl1. The message does not appear after refreshing the page. The condition to reproduce the error has not been identified, but is more likely to happen when using header("Location: http://mysite.com/path/to/my/file.php");. It happens even if you check that no output (such as carriage returns or spaces) has been sent before the header instruction. 2. While setting headers after headers have been already sent. Functions like setcookie, header and session_start can set header information. If headers have been already automatically sent by some output, the error is likely to occur. 3. When requesting an URL with a file or directory that doesn't exist. THIS IS NOT A BUG. It only happens if you have not checked the checkbox in: Internet Information Services >> Web Site Properties >> Home Directory >> Application Configuration >> Add/Edit Application Extension Mapping >> Check that file exists. ------------------------------------------------------------------------ [2001-01-06 12:37:32] jmoore@php.net A little bit more info than this is genrally needed. Please enlighten us to how the CGI application misbehaved. ------------------------------------------------------------------------ [2001-01-06 12:35:42] dful@metahogar.com ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=8571&edit=1

« previous php.dev (#73853) next »