ID: 35192 User updated by: uap-php at cheeky dot org Reported By: uap-php at cheeky dot org -Status: Feedback +Status: Open Bug Type: Session related Operating System: Linux - FC 4 PHP Version: 5.0.5 New Comment:
This bug still appears in build dated php5-200511140930 Previous Comments: ------------------------------------------------------------------------ [2005-11-11 22:08:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-11-11 11:06:12] uap-php at cheeky dot org Description: ------------ I think this has bug has been touched on before but never resolved. If you have register_long_arrays=off in your ini file, $_SESSION stuff does work, apart from when you iterate over it. It seems that if you iterate over $_SESSION, the session_save handler does not get called and the session data is not saved. If for example you wanted to empty all your session data and you did it by setting each session var seperatly, it works. If you iterate over $_SESSION, set each $_SESSION[$key]=''; The session data will not get saved. Reproduce code: --------------- see http://php.lollyposh.com/session_test.phps Expected result: ---------------- If run with register_long_arrays=off or on, the value of $_SESSION['search_test'] should be '' Actual result: -------------- If run with register_long_arrays=off, the value of $_SESSION['search_test'] will be 'hello!' If run with register_long_arrays=on, the value of $_SESSION['search_test'] will be '' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35192&edit=1