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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 21:01:30 2024 UTC