#48477 [NEW]: Session always store content in UTF-8
| From: | dayseye at 21cn dot com | Date: | Fri, 05 Jun 2009 09:50:30 +0000 |
| Subject: | #48477 [NEW]: Session always store content in UTF-8 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-138053@lists.php.net to get a copy of this message | ||
From: dayseye at 21cn dot com
Operating system: Win32
PHP version: 5.3.0RC2
PHP Bug Type: Session related
Bug description: Session always store content in UTF-8
Description:
------------
I write some code in charset "GBK" and use session to store some text.
When I get the $_SESSION data, found it's UTF-8, which behave different
from PHP5.2.x
Reproduce code:
---------------
test.php (ASNI)
================
<?php
session_start();
$_SESSION['name'] = 'ÕÅÃô·å';
echo $_SESSION['name'];
?>
Expected result:
----------------
display:
=========
ÕÅÃô·å
Actual result:
--------------
display:
=========
text can't viewed correctly in charset "GBK".
--
Edit bug report at http://bugs.php.net/?id=48477&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48477&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48477&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48477&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48477&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48477&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48477&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48477&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48477&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48477&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48477&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48477&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48477&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48477&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48477&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48477&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48477&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48477&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48477&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48477&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48477&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48477&r=mysqlcfg