php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55342 Bug with session
Submitted: 2011-08-02 01:14 UTC Modified: 2013-02-18 00:34 UTC
From: filled2 at gmail dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.3.6 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
35 - 31 = ?
Subscribe to this entry?

 
 [2011-08-02 01:14 UTC] filled2 at gmail dot com
Description:
------------
So i had this problem when you have a regular variable and a session variable with 
same names. Something like - $_SESSION['ses'] and $ses. So when you change the 
$ses to some value, the session value with the same name will change too. My 
Version is PHP 5.2.6. I havent changed anything in any php files. I use AppServ 
v2.5.10.

Test script:
---------------
$_SESSION['s'] = "hey";
$s = "hello";

echo $_SESSION['s']." $s";

Expected result:
----------------
hey hello

Actual result:
--------------
hello hello

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-02 12:03 UTC] laruence@php.net
do you have session.bug_compat_42 on?
if yes, turn it off and try again.
 [2011-08-03 09:33 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC