ID: 30039
Updated by: [EMAIL PROTECTED]
Reported By: epoc_32 at yahoo dot co dot ukXXX
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: FreeBSD 4.8
PHP Version: 4.3.8
New Comment:
PHP doesn't modify this header, so it can't be a bug in PHP. I suspect
it's apache playing tricks.
Previous Comments:
------------------------------------------------------------------------
[2004-09-09 15:48:35] epoc_32 at yahoo dot co dot ukXXX
Description:
------------
I am using the following line in a script:
header('Content-Language: '.$PAGE['lang']);
If $PAGE['lang'] is 'no' then the http header gets sent as expected:
Content-Language: no
However when $PAGE['lang'] is 'en' (and it definately is just 'en'
without any whitespace or uppercase characters) then this gets sent
instead:
Content-Language: en, en
Is this a bug or am I not understanding something? Or maybe something
Apache's doing afterwards? (I have version 1.3.29)
I did some testing and it seems the first 'en' is my string and the
second one is being added if that's of any help.
Reproduce code:
---------------
// English
header('Content-Language: en');
// Norwegian
header('Content-Language: no');
Expected result:
----------------
Content-Language: en
Content-Language: no
Actual result:
--------------
Content-Language: en, en
Content-Language: no
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30039&edit=1