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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: filled2 at gmail dot com
New email:
PHP Version: OS:

 

 [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: Tue Apr 23 14:01:31 2024 UTC