ID: 25940
Updated by: [email]tony2001php.net[/email]
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 [url]http://www.php.net/release_4_2_0.php[/url] 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 doentation.


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 [url]http://bugs.php.net/?id=25940&edit=1[/url]