PHP 4.0 Bug #7772: Problems with session vars

From: Date: Mon, 13 Nov 2000 01:28:22 +0000
Subject: PHP 4.0 Bug #7772: Problems with session vars
Groups: php.dev 
Request: Send a blank email to php-dev+get-37865@lists.php.net to get a copy of this message
From: jkohen@tough.com Operating system: Linux PHP version: 4.0.3pl1 PHP Bug Type: *Session related Bug description: Problems with session vars Apache/1.3.14 (Unix) PHP/4.0.3pl1 # "If both track_vars and register_globals are enabled, then the globals variables and the $HTTP_SESSION_VARS entries will reference the same value." - PHP Manual. # In the next example $HTTP_SESSION_VARS[xyzzy] can only be read, if it's written, the new value is lost, it doesn't get saved through requests. # Besides that, setting $xyzzy to something isn't reflected in its $HTTP_SESSION_VARS counterpart until the next request. session_register("xyzzy"); $HTTP_SESSION_VARS[xyzzy] = 'nothing'; $xyzzy = 'something'; # Here, $HTTP_SESSION_VARS[xyzzy] is equal to 'nothing'. $HTTP_SESSION_VARS[xyzzy] = 'somethingelse'; # Here, $HTTP_SESSION_VARS[xyzzy] is equal to 'somethingelse'. # At the next request, $HTTP_SESSION_VARS[xyzzy] will be equal to 'something'. -- Edit Bug report at: http://bugs.php.net/?id=7772&edit=1

« previous php.dev (#37865) next »