php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28586 hmmm
Submitted: 2004-05-31 06:05 UTC Modified: 2004-05-31 09:48 UTC
From: dave at faf dot co dot nz Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.6 OS: Linux
Private report: No CVE-ID: None
 [2004-05-31 06:05 UTC] dave at faf dot co dot nz
Description:
------------
If session variable keys are used in the page as regular variables, ie; $_SESSION['IsGod'] and $IsGod, the session variable is replaced with the value of the local variable. I couldn't believe it myself, but its been causing errors ALL OVER THE PLACE !!!. anyway, feel free to check it, the checkbox the value was reading from was named chkIsGod so thats not it, and on changing local to "$God" the problem died.

Horrible bug.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-31 08:54 UTC] dave at faf dot co dot nz
appears it doesn't show up in a simple start session, set session, set variable check session test.
 [2010-12-02 20:10 UTC] crazy dot sage at gmail dot com
PHP 5.2.14, Windows NT 6.1 build 7600 bug is still there
PHP 5.2.14 FreeBSD 7.2-RELEASE-p2 bug isn't observed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 30 22:00:01 2025 UTC