#23199 [NEW]: Encoding causes PHP to think headers already sent

From: Date: Mon, 14 Apr 2003 10:28:36 +0000
Subject: #23199 [NEW]: Encoding causes PHP to think headers already sent
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37638@lists.php.net to get a copy of this message
From: sumairi at hotmail dot com Operating system: Linux PHP version: 4.3.1 PHP Bug Type: Session related Bug description: Encoding causes PHP to think headers already sent 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 bug report at http://bugs.php.net/?id=23199&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23199&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23199&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23199&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23199&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23199&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23199&r=support Expected behavior: http://bugs.php.net/fix.php?id=23199&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23199&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23199&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23199&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23199&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23199&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23199&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23199&r=gnused

« previous php.bugs (#37638) next »