#44563 [Opn->Bgs]: UTF-8 Session_start()
| From: | jani@php.net | Date: | Sat, 29 Mar 2008 17:47:14 +0000 |
| Subject: | #44563 [Opn->Bgs]: UTF-8 Session_start() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123761@lists.php.net to get a copy of this message | ||
ID: 44563
Updated by: jani@php.net
Reported By: quick dot webmaster at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *Unicode Issues
Operating System: Linux
PHP Version: 5.2.5
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2008-03-29 05:34:24] quick dot webmaster at gmail dot com
Description:
------------
If file A or file B has UTF-8 encoding then you will get the error:
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at index.php:1) in
session.php on line 3
Using UTF-8 encoding WITHOUT BOM (Byte Order Mark) seems to fix the
problem.
Reproduce code:
---------------
File A:
<?php
include("session");
?>
File B:
<?php
session_start();
?>
Expected result:
----------------
Session is created.
Actual result:
--------------
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at index.php:1) in
session.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44563&edit=1