[PHP-DOC] #22068 [Opn]: Access $_SESSION From: derick <email protected>
Date: 02/05/03

 ID: 22068
 Updated by: derick <email protected>
 Reported By: AchimWinkelmann <email protected>
 Status: Open
-Bug Type: Session related
+Bug Type: Documentation problem
 Operating System: Windows XP
 PHP Version: 4.3.0
 New Comment:

Documentation problem

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

[2003-02-05 05:23:57] AchimWinkelmann <email protected>

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

-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php