From:             opurahman at gmail dot com
Operating system: Linux
PHP version:      5.2.8
PHP Bug Type:     Session related
Bug description:  function session_unset() reset local variables

Description:
------------
function session_unset() reset local variables.
I was trying to reset session variables after storing two values from
session. It reset my local variables. Lets take a look into the codes
bellow.

Reproduce code:
---------------
session_start();
$message = sprintf('%s', $_SESSION['message']);

echo('Here Message: # ' . $message . '<br />');

session_unset();

echo('Here Message: # ' . $message . '<br />'); // in this line, the
variable $message has been unset.

Expected result:
----------------
It should display the value of $message


-- 
Edit bug report at http://bugs.php.net/?id=47065&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47065&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47065&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47065&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47065&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47065&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47065&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47065&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47065&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47065&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47065&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47065&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47065&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47065&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47065&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47065&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47065&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47065&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47065&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47065&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47065&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47065&r=mysqlcfg

Reply via email to