php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10623 Left value $HTTP_SESSION_VARS[] doesn't work
Submitted: 2001-05-02 22:44 UTC Modified: 2001-06-12 17:19 UTC
From: wuxinan at stanford dot edu Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.5 OS: Windows 98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wuxinan at stanford dot edu
New email:
PHP Version: OS:

 

 [2001-05-02 22:44 UTC] wuxinan at stanford dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-04 07:11 UTC] wuxinan at stanford dot 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-22 21:15 UTC] sbergmann@php.net
Please give the latest CVS a try. Andrei Zmievski committed a patch that should fix this problem.
 [2001-06-12 17:19 UTC] sniper@php.net
Try latest CVS build from http://zend.com/snapshots/
This should be fixed.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 10:01:29 2024 UTC