php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25160 Extra characters in header under certain conditions
Submitted: 2003-08-19 17:53 UTC Modified: 2003-08-19 19:03 UTC
From: jeff at mos dot org Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.2 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: jeff at mos dot org
New email:
PHP Version: OS:

 

 [2003-08-19 17:53 UTC] jeff at mos dot org
Description:
------------
I'm also using the FastCGI ISAPI dll from here:
http://www.caraveo.com/fastcgi/

The problem I was seeing was when redirecting from an https page to any other page by means of the Location: header in Apple's Safari browser. The browser would hang.

I used wget to look at the headers and got this:
 1 HTTP/1.1 302 Moved
 2 Server: Microsoft-IIS/5.0
 3 Date: Tue, 19 Aug 2003 22:29:13 GMT
 4 (null)
 5 Content-type: text/html
 6 X-Powered-By: PHP/4.3.2
 7 Location: http://ecomdev.mos.org/?action=showorder

Note the (null) line. Is php adding a line feed, carriage return, or some other character?

I set 'cgi.rfc2616_headers = 0' in php.ini, and the mystery (null) went away. I had originally set it to '1' because the comments in php.ini said to if using IIS.

This problem did not occur with the ISAPI module or plain CGI, with either setting of 'cgi.rfc2616_headers'.

Changing the 'cgi.rfc2616_headers' setting has solved my Safari hanging problem.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-19 19:03 UTC] sniper@php.net
Yes, the correct setting is 0 for cgi. (and afaik, this is fixed in CVS too)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 21:01:33 2024 UTC