|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28324 HTTP_SESSION_VARS appear when register_long_arrays is Off
Submitted: 2004-05-08 06:29 UTC Modified: 2005-02-10 20:41 UTC
Avg. Score:3.0 ± 1.8
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: viper_sb at yahoo dot com Assigned:
Status: Closed Package: Session related
PHP Version: 5.0.0RC2 OS: FreeBSD 4.7
Private report: No CVE-ID: None
 [2004-05-08 06:29 UTC] viper_sb at yahoo dot com
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:
$_SESSION['test'] = 'value';

Expected result:
Notice:  Undefined variable:  HTTP_SESSION_VARS in /usr/local/www/data.web/web/test.php line 3


Actual result:
array(1) {
  string(5) "value"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-08 07:16 UTC]
$ php
var_dump(isset($HTTP_SESSION_VARS), ini_get('register_long_arrays'));
string(0) ""

 [2005-02-10 20:41 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 01:01:29 2024 UTC