php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8571 CGI application misbehaved
Submitted: 2001-01-06 12:35 UTC Modified: 2002-01-05 16:45 UTC
From: dful at metahogar dot com Assigned:
Status: Closed Package: IIS related
PHP Version: 4.0.3pl1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dful at metahogar dot com
New email:
PHP Version: OS:

 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-06 12:37 UTC] 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:54 UTC] dful at metahogar dot 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-12-14 16:54 UTC] lobbin@php.net
Can this be reproduced with PHP 4.1.0?
 [2002-01-05 16:45 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 04:01:30 2024 UTC