ID: 25940
Updated by: [email][/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][/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

$_SESSION variables are sometimes overwritten on FreeBSD

Reproduce code:


$kdnr = 1;
if (isset($_SESSION['kdnr']))
$kdnr = $_SESSION['kdnr'];


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 )


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][/url]