From: richard at dominion-web dot com Operating system: Windows Server 2003 PHP version: 6CVS-2007-07-06 (snap) PHP Bug Type: SPL related Bug description: $_SESSION array lost from one page to the next
Description: ------------ I have a script that runs fine on all versions of PHP until I test with the latest 6.0.0 snapshot. I am using URL sessions rather than cookie based sessions On the first page I start the session with session_start(); and set some variables with $_SESSION['varname'] = 'value'; I check the session temp directory and the session is there --- folder|S:5:"INBOX"; --- The page directs to the next page and can confirm that the session id in the URL is the same as that in the session temp directory. However on both a print_r($_SESSION); and a var_dump($_SESSION); I get Array ( ) being outputted to the screen. The data is still in the session temp file i.e. it hasn't been deleted, just the next script seems unable to read the data out of the file from one page to the next. As I say this script works on PHP 4, 5, 5.1 and 5.2 just not on 6.0snapshot. Reproduce code: --------------- 1st page ini_set ( "session.use_cookies", 0); session_start(); $_SESSION['folder'] = 'INBOX'; 2nd page ini_set ( "session.use_cookies", 0); session_start(); var_dump($_SESSION); Expected result: ---------------- To get a variable dump of the $_SESSION array with folder -> INBOX in it Actual result: -------------- Array(0) { } -- Edit bug report at http://bugs.php.net/?id=41916&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41916&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41916&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41916&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41916&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41916&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41916&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41916&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41916&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41916&r=support Expected behavior: http://bugs.php.net/fix.php?id=41916&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41916&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41916&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41916&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41916&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41916&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41916&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41916&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41916&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41916&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41916&r=mysqlcfg