#22068 [Opn->Bgs]: Access $_SESSION

From: Date: Wed, 05 Feb 2003 20:31:38 +0000
Subject: #22068 [Opn->Bgs]: Access $_SESSION
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351617@lists.php.net to get a copy of this message
ID: 22068 Updated by: nicos@php.net Reported By: AchimWinkelmann@web.de -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Windows XP PHP Version: 4.3.0 New Comment: The documentation is clear enough to me (us). Using the global keyword on any $_* shouldn't create a new variable. If it does, this is not a documentation bug. I verified with PHP4.3 and 5.0 (ZE2), it doesn't. Not a bug -> Bogus. Feel free to post a new bug if you feel we are wrong. Previous Comments: ------------------------------------------------------------------------ [2003-02-05 05:24:57] derick@php.net Documentation problem ------------------------------------------------------------------------ [2003-02-05 05:23:57] AchimWinkelmann@web.de The manual says at topic XCIII. SESSION HANDLING FUNCTIONS under headline EXAMPLES within the NOTE, 'you do not need to use the global keyword for $_SESSION'. In fact you 'may not use the global keyword' when accessing $_SESSION from within a function, otherwise a different global variable seems to be created/accessed (PHP 4.3.0, WinXP)! Maybe it is no bug, but I miss any sematically sense. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22068&edit=1

« previous php.doc (#969351617) next »