Bug #55342 [Opn->Fbk]: Bug with session

From: Date: Wed, 03 Aug 2011 09:33:40 +0000
Subject: Bug #55342 [Opn->Fbk]: Bug with session
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162377@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55342&edit=1 ID: 55342 Updated by: laruence@php.net Reported by: filled2 at gmail dot com Summary: Bug with session -Status: Open +Status: Feedback Type: Bug Package: Session related Operating System: Windows PHP Version: 5.3.6 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-08-02 12:03:58] laruence@php.net do you have session.bug_compat_42 on? if yes, turn it off and try again. ------------------------------------------------------------------------ [2011-08-02 01:14:02] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55342&edit=1

« previous php.bugs (#162377) next »