PHP 4.0 Bug #10623 Updated: Left value $HTTP_SESSION_VARS[] doesn't work
| From: | wuxinan at stanford dot edu | Date: | Fri, 04 May 2001 11:11:37 +0000 |
| Subject: | PHP 4.0 Bug #10623 Updated: Left value $HTTP_SESSION_VARS[] doesn't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53796@lists.php.net to get a copy of this message | ||
ID: 10623
User Update by: wuxinan@stanford.edu
Status: Open
Bug Type: *Session related
Description: Left value $HTTP_SESSION_VARS[] doesn't work
Actually use $HTTP_SESSIONS_VARS[] for right-value and global variables for left-value directly
won't have any security problems. So I guess this IS a bug but it doesn't matter.
Previous Comments:
---------------------------------------------------------------------------
[2001-05-02 22:44:19] wuxinan@stanford.edu
I use binary release of 4.0.5
I turn on global_vars
the following statement won't work:
session_register("god");
$HTTP_SESSION_VARS["god"] = true;
instead, I have to use
$god=true;
however, if I have assigned true to $god via the statement "$god=true", I can access $god
via $HTTP_SESSION_VARS["god"].
This means, $HTTP_SESSION_VARS[] can only work as a right-value.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10623