#21473 [Opn->Bgs]: Content-Type header ignored when default character encoding set in php.ini
| From: | sniper@php.net | Date: | Wed, 08 Jan 2003 01:31:54 +0000 |
| Subject: | #21473 [Opn->Bgs]: Content-Type header ignored when default character encoding set in php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29388@lists.php.net to get a copy of this message | ||
ID: 21473
Updated by: sniper@php.net
Reported By: jason@buberel.org
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Linux
PHP Version: 4.2.3
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-01-06 16:03:16] jason@buberel.org
In php 4.2.3, if a value is specifed for the default_charset variable
in /etc/php.ini, attempts to modify the content type using:
header("Content-Type: text/vnd.wap.wml");
will be ignored by PHP:
> telnet www.buberel.org 80
Trying 10.0.0.1...
Connected to taylor.buberel.org (10.0.0.1).
Escape character is '^]'.
get /wapmail/test.php HTTP/1.0
HTTP/1.1 200 OK
Date: Mon, 06 Jan 2003 21:32:01 GMT
Server: Apache-AdvancedExtranetServer/1.3.26 (Mandrake Linux/6.1mdk)
mod_ssl/2.8.10 OpenSSL/0.9.6g PHP/4.2.3
X-Powered-By: PHP/4.2.3
Connection: close
Content-Type: text/html; charset=iso-8859-15
<?xml version="1.0"?>
However, when the value of default_charset is set to the empty string
("") in /etc/php.ini, the content-type header is handled properly:
> telnet www.buberel.org 80
Trying 10.0.0.1...
Connected to taylor.buberel.org (10.0.0.1).
Escape character is '^]'.
get /wapmail/test.php HTTP/1.0
HTTP/1.1 200 OK
Date: Mon, 06 Jan 2003 22:02:04 GMT
Server: Apache-AdvancedExtranetServer/1.3.26 (Mandrake Linux/6.1mdk)
mod_ssl/2.8.10 OpenSSL/0.9.6g PHP/4.2.3
X-Powered-By: PHP/4.2.3
Random-Header: x/y
Connection: close
Content-Type: text/vnd.wap.wml
<?xml version="1.0"?>
-jason
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21473&edit=1