#25940 [Opn->Bgs]: $_SESSION has strange behaviour on some OS
| From: | tony2001@php.net | Date: | Wed, 22 Oct 2003 05:40:51 +0000 |
| Subject: | #25940 [Opn->Bgs]: $_SESSION has strange behaviour on some OS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49317@lists.php.net to get a copy of this message | ||
ID: 25940
Updated by: tony2001@php.net
Reported By: Reiner dot Proels at laposte dot net
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: FreeBSD 4.8-RELEASE-p3 #1
PHP Version: 4.3.3
New Comment:
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
Please, read about register_globals in the documentation.
Previous Comments:
------------------------------------------------------------------------
[2003-10-21 16:19:29] Reiner dot Proels at laposte dot net
Description:
------------
$_SESSION variables are sometimes overwritten on FreeBSD
Reproduce code:
---------------
session_start();
print_r($_SESSION);
$kdnr = 1;
if (isset($_SESSION['kdnr']))
$kdnr = $_SESSION['kdnr'];
print_r($_SESSION);
the variable $_SESSION['kdnr'] was set in an other script to "123"
Expected result:
----------------
Output under Windows with IIS
Array ( [kdnr] => 123 ) Array ( [kdnr] => 123 )
OK.
on the server of my provider there is FreeBSD running
the output looks like this:
Array ( [kdnr] => 123 ) Array ( [kdnr] => 1 )
so the $kdnr = 1 line has overwritten the session variable!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25940&edit=1