#39225 [Opn->Bgs]: $_SESSION getting confused with regular variables
| From: | tony2001@php.net | Date: | Sat, 21 Oct 2006 21:54:20 +0000 |
| Subject: | #39225 [Opn->Bgs]: $_SESSION getting confused with regular variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103857@lists.php.net to get a copy of this message | ||
ID: 39225
Updated by: tony2001@php.net
Reported By: dgk at visskiss dot org
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: fedora
PHP Version: 5.1.6
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
This is the way register_globals works and this is expected behaviour.
Btw, register_globals is OFF by default since ages.
Previous Comments:
------------------------------------------------------------------------
[2006-10-21 21:49:47] dgk at visskiss dot org
Description:
------------
$_SESSION variables are being confused/parsed as regular
variables or vice versa
Reproduce code:
---------------
$_SESSION['uid']=99;
echo $_SESSION['uid'];
$uid = '55';
echo $_SESSION['uid'];
Expected result:
----------------
9999
Actual result:
--------------
9955
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39225&edit=1