#23199 [Opn->Bgs]: Encoding causes PHP to think headers already sent
| From: | moriyoshi@php.net | Date: | Mon, 14 Apr 2003 10:48:04 +0000 |
| Subject: | #23199 [Opn->Bgs]: Encoding causes PHP to think headers already sent | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37639@lists.php.net to get a copy of this message | ||
ID: 23199
Updated by: moriyoshi@php.net
Reported By: sumairi at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Linux
PHP Version: 4.3.1
New Comment:
Dupe of bug #22108
Previous Comments:
------------------------------------------------------------------------
[2003-04-14 05:28:36] sumairi at hotmail dot com
I have the "Warning: Cannot send session cache limiter - headers
already sent" problem with PHP4.3.1, i don't include/require any files
before calling session_start(). I get this error even with a test PHP
file with one line having only "session_start()". And i don't use
auto_prepend.
I found out that this is because the PHP file i upload to my Redhat 8
box is saved with UTF-8 encoding (using notepad), i tried to save it
with different encodings (using Windows Notepad also). Only when I save
the file with ANSI encoding it will work. Looks like when saving with
UTF-8 headers will be sent by apache, or maybe a bug in PHP??
Just in case. this is different than "Content-Type" header. Go to
Notepad open any txt file, and click file/save as.., see the encoding
option.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23199&edit=1