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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2023 The PHP Group
All rights reserved.
Last updated: Sun Jan 29 07:05:53 2023 UTC