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
