#26572 [Opn->Bgs]: Session & Simple variable name overlap
| From: | alan_k@php.net | Date: | Wed, 10 Dec 2003 03:18:50 +0000 |
| Subject: | #26572 [Opn->Bgs]: Session & Simple variable name overlap | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-51877@lists.php.net to get a copy of this message | ||
ID: 26572
Updated by: alan_k@php.net
Reported By: hsutanto78 at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: FreeBSD 4.7
PHP Version: 4.3.3
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2003-12-09 21:27:28] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26572&edit=1