From: harshit at oinka dot com
Operating system: Windows 2000 Professional
PHP version: 4.3.5
PHP Bug Type: Apache related
Bug description: header interpretation problem
Description:
------------
I was using the header function to create a redirect using the "Location"
HTTP header. It seems that Apache is sensitive about the syntax of the
header sent.
In the general format <header-name>: <header value> there must be no space
between the <header-name> and the proceeding ":" (colon).
eg. header("Location : www.somesite.php");
Somehow any spaces between the two doesn't allow the header to be
interpreted properly under Apache (1.xx) and as a result it does not
produce the desired result (redirection in my case) but it works out fine
on IIS 5.0
I spent an hour trying to debug this, hope someone will benefit from this.
--
Edit bug report at http://bugs.php.net/?id=28302&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28302&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28302&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28302&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28302&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28302&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28302&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28302&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28302&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28302&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28302&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28302&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28302&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28302&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28302&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28302&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28302&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28302&r=float