PHP 4.0 Bug #8226: Problems with session vars(related to #7772)
| From: | martin at netconfigs dot com | Date: | Wed, 13 Dec 2000 12:47:39 +0000 |
| Subject: | PHP 4.0 Bug #8226: Problems with session vars(related to #7772) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41167@lists.php.net to get a copy of this message | ||
From: martin@netconfigs.com
Operating system: Linux2.2.16(SuSE7)
PHP version: 4.0.1pl2
PHP Bug Type: *Session related
Bug description: Problems with session vars(related to #7772)
Session saved from globals dispite setting register_globals=off although session_encode() does what
is expected.
.htaccess:
php_flag register_globals off
php-script resulting in session file: "count|i:4321;"
<?php
session_register("count");
$HTTP_SESSION_VARS["count"]=1234;
$count=4321;
?>
php-script resulting in session file: "!count|"
<?php
session_register("count");
$HTTP_SESSION_VARS["count"]=1234;
?>
workaround - last line of script:
while(list($k,$v) = each($HTTP_SESSION_VARS)) ${$k} = $v;
--
Edit Bug report at: http://bugs.php.net/?id=8226&edit=1