From:             uap-php at cheeky dot org
Operating system: Linux - FC 4
PHP version:      5.0.5
PHP Bug Type:     Session related
Bug description:  Session save not triggered

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 bug report at http://bugs.php.net/?id=35192&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35192&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35192&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35192&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35192&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35192&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35192&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35192&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35192&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35192&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35192&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35192&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35192&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35192&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35192&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35192&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35192&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35192&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35192&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35192&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35192&r=mysqlcfg

Reply via email to