ID: 25940 User updated by: Reiner dot Proels at laposte dot net Reported By: Reiner dot Proels at laposte dot net Status: Bogus Bug Type: Session related Operating System: FreeBSD 4.8-RELEASE-p3 #1 PHP Version: 4.3.3 New Comment:
OK I see it $kdnr and $_SESSION['$kdnr'] are the same if 'register_globals' is on (and it is on on the server of my provider, I don't know why !!!) R Previous Comments: ------------------------------------------------------------------------ [2003-10-22 01:40:51] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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