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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 01:01:30 2025 UTC