ID:               34887
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dedalo at doramail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: Linux Fedora Core 4 x86_64
 PHP Version:      5.0.5
 New Comment:

Not a bug, so we mark it bogus.


Previous Comments:
------------------------------------------------------------------------

[2005-10-17 03:26:32] dedalo at doramail dot com

This is not a bug. I have used session_unset and session_destroy all
together.

------------------------------------------------------------------------

[2005-10-17 03:12:57] dedalo at doramail dot com

Description:
------------
I have this code:

session_start();

$_SESSION['myvariable'] = 'Hi all';
$temp = $_SESSION['myvariable'];

session_unset();
session_destroy();

echo $temp;

The output is null.

The variable $temp is not valid more. I think this is a bug because is
assigned by value and not by reference.

register_globals is on

Reproduce code:
---------------
session_start();

$_SESSION['myvariable'] = 'Hi all';
$temp = $_SESSION['myvariable'];

session_unset();
session_destroy();

echo $temp;

Expected result:
----------------
Hi all

Actual result:
--------------
null


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34887&edit=1

Reply via email to