Bug #10623 Updated: Left value $HTTP_SESSION_VARS[] doesn't work

From: Date: Tue, 22 May 2001 19:15:13 +0000
Subject: Bug #10623 Updated: Left value $HTTP_SESSION_VARS[] doesn't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-56327@lists.php.net to get a copy of this message
ID: 10623 Updated by: sbergmann Reported By: wuxinan@stanford.edu Old-Status: Open Status: Feedback Bug Type: *Session related Operating system: PHP Version: 4.0.5 Assigned To: Comments: Please give the latest CVS a try. Andrei Zmievski committed a patch that should fix this problem. Previous Comments: --------------------------------------------------------------------------- [2001-05-04 07:11:37] wuxinan@stanford.edu 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. --------------------------------------------------------------------------- [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. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10623&edit=2

« previous php.dev (#56327) next »