From: [EMAIL PROTECTED] Operating system: Linux/Windows PHP version: 4.2.3 PHP Bug Type: Reproducible crash Bug description: session_decode causes the script to crash
function get_session_decode($sessStr) { if ($sessStr) { session_decode($sessStr); unset($sessStr); $vars = get_defined_vars(); return $vars; } //if } //func The following function should return an array of session variables: function get_session_decode($sessStr) { if ($sessStr) { session_decode($sessStr); unset($sessStr); $vars = get_defined_vars(); return $vars; } //if } //func print_r(get_session_decode('TEST|s:7:"testing";')); however session_decode always crashes when you pass it a valid session string. It does not crash if you pass it an invalid session string or an empty/false string. I tried using the function by it self, but it still crashes. No sessions where created at the time (which SHOULD NOT be needed). If you call session_start() first, it does not crash, but does not set any variables. -- Edit bug report at http://bugs.php.net/?id=20961&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20961&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20961&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20961&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20961&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20961&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20961&r=support Expected behavior: http://bugs.php.net/fix.php?id=20961&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20961&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20961&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20961&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20961&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20961&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20961&r=isapi