From:             acecream at ctgmusic dot com
Operating system: windows xp
PHP version:      5.0.5
PHP Bug Type:     Variables related
Bug description:  when saving $_SESSION to new variable it stops working

Description:
------------
When i save $_SESSION to some local variable then afterwards what ever i
put into $_SESSION has no affect on next page load, from the moment when
$_SESSION is saved into new variable it seems nothing is written into
actual session anymore.

Reproduce code:
---------------
<?php 

session_start(); 

print_r($_SESSION); 
$session = $_SESSION;  // without this line it works ok 
$_SESSION['test'] = 1000; 

?>

Expected result:
----------------
You need to run this code atleast twice so that first time session is set
and next time it should be printed out but the thing is that i always get
empty array.


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

Reply via email to