From: jeff at mos dot org
Operating system: Windows 2000
PHP version: 4.3.2
PHP Bug Type: IIS related
Bug description: Extra characters in header under certain conditions

Description:
------------
I'm also using the FastCGI ISAPI dll from here:
[url]http://www.caraveo.com/fastcgi/[/url]

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: [url]http://ecomdev.mos.org/?action=showorder[/url]

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.


--
Edit bug report at [url]http://bugs.php.net/?id=25160&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25160&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25160&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25160&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25160&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25160&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25160&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25160&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25160&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25160&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25160&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25160&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25160&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25160&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25160&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25160&r=gnused[/url]