#23184 [Opn->Fbk]: (null)-value in front of header-location-request
| From: | iliaa@php.net | Date: | Wed, 16 Apr 2003 02:27:43 +0000 |
| Subject: | #23184 [Opn->Fbk]: (null)-value in front of header-location-request | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37731@lists.php.net to get a copy of this message | ||
ID: 23184
Updated by: iliaa@php.net
Reported By: info at speedpartner dot de
-Status: Open
+Status: Feedback
Bug Type: Output Control
Operating System: Linux
PHP Version: 4.3.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
If the problem persists, check if you have 'cgi.rfc2616_headers' ini
setting enabled. Via: <?php var_dump(ini_get("cgi.rfc2616_headers"));
?>
Previous Comments:
------------------------------------------------------------------------
[2003-04-13 04:11:27] info at speedpartner dot de
Using php4.3.1-cgi I with this script:
<?
Header("Location: abcdef.php");
?>
and running it with this:
php x.php
results in:
(null)
Content-type: text/html
Location: abcdef.php
This null-value in front is only present if I'm using a
header-redirect. All setCookie or something works fine and without the
null-value.
Problem is that this null badly confuses apache's mod_proxy because it
interprets the content-type and location as part of the body of the
page and not as real header-values.
Does anybody know where this null comes from? Is it easy to fix
somewhere in the source? Need urgent reply!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23184&edit=1