#28324 [Ver->Csd]: HTTP_SESSION_VARS appear when register_long_arrays is Off
| From: | tony2001@php.net | Date: | Thu, 10 Feb 2005 19:41:50 +0000 |
| Subject: | #28324 [Ver->Csd]: HTTP_SESSION_VARS appear when register_long_arrays is Off | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73774@lists.php.net to get a copy of this message | ||
ID: 28324
Updated by: tony2001@php.net
Reported By: viper_sb at yahoo dot com
-Status: Verified
+Status: Closed
Bug Type: Session related
Operating System: FreeBSD 4.7
PHP Version: 5.0.0RC2
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-05-08 07:16:47] magnus@php.net
$ php
<?php
session_start();
var_dump(isset($HTTP_SESSION_VARS), ini_get('register_long_arrays'));
bool(true)
string(0) ""
------------------------------------------------------------------------
[2004-05-08 06:29:53] viper_sb at yahoo dot com
Description:
------------
HTTP_SESSION_VARS still shows up even though register_long_arrays is
off.
After inializing a session and setting a session variable
HTTP_SESSION_VARS becomes avaiable, ($_SESSION is there also)
Reproduce code:
---------------
<?php
session_start();
$_SESSION['test'] = 'value';
var_dump($HTTP_SESSION_VARS);
?>
Expected result:
----------------
Notice: Undefined variable: HTTP_SESSION_VARS in
/usr/local/www/data.web/web/test.php line 3
NULL
Actual result:
--------------
array(1) {
["test"]=>
string(5) "value"
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28324&edit=1