php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26572 Session & Simple variable name overlap
Submitted: 2003-12-09 21:27 UTC Modified: 2003-12-09 22:18 UTC
From: hsutanto78 at hotmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.3 OS: FreeBSD 4.7
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: hsutanto78 at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-12-09 21:27 UTC] hsutanto78 at hotmail dot com
Description:
------------
Session & simple variable name overlap

Reproduce code:
---------------
session_start();
$_SESSION['dim']="Some Value";

if(isset($dim)) 
  echo($dim);
else
  echo "Variable Not Set";


Expected result:
----------------
Variable Not Set

Actual result:
--------------
Windows IIS : Variable Not Set
Free BSD    : Some Value

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-09 22:18 UTC] alan_k@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

I think you will find the versions/php.ini are different 

you should not really write code that expects $dim to be set 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 08 22:00:01 2025 UTC