|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-05-08 06:29 UTC] 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"
}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 02:00:01 2025 UTC |
$ php <?php session_start(); var_dump(isset($HTTP_SESSION_VARS), ini_get('register_long_arrays')); bool(true) string(0) ""