Edit report at http://bugs.php.net/bug.php?id=52477&edit=1
ID: 52477 Updated by: j...@php.net Reported by: esvinson at gmail dot com Summary: Loss of session data. -Status: Open +Status: Bogus Type: Bug Package: Session related Operating System: Windows 2003/XP PHP Version: 5.2.14 Block user comment: N Private report: N New Comment: As long as register_globals can be enabled, this is not possible since ! is not allowed in variable names. Previous Comments: ------------------------------------------------------------------------ [2010-07-29 00:36:44] esvinson at gmail dot com Description: ------------ A session variable can be created containing a '!', but the entire session is destroyed when the system tries to write the session file. Test script: --------------- <?php session_start(); $_SESSION['as!df'] = array("test 123"); // print_r on _SESSION here shows expected result. session_write_close(); session_start(); echo "<pre>".print_r($_SESSION,true)."</pre>"; Expected result: ---------------- Array ( [as!df] => Array ( [0] => test 123 ) ) Actual result: -------------- Array ( ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52477&edit=1