php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5336 3d arrays don't register correctly
Submitted: 2000-07-03 03:58 UTC Modified: 2000-07-03 05:25 UTC
From: matt at do2 dot net Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.0 OS: RedHat 6.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: matt at do2 dot net
New email:
PHP Version: OS:

 

 [2000-07-03 03:58 UTC] matt at do2 dot net
It seems that if you start a session and register a 3d array with it, that array can be modified once, from having nothing in it to having whatever you put in it the first time.  After that, any attempts to modify it don't stick.  The first modification's results don't update.

Example.

*snip*

session_start();

$array[0][0][0] = 0;
session_register($array);

// If these variables below are called from the same place the session is registered, they'll stick.
$array[1][2][3] = 1;
$array[2][3][1] = 3;

// Now let's assume these are set from a different page
$array[4][4][4] = 2;
$array[4][4][5] = 2;

*snip*

The array only contains [1][2][3] and [2][3][1].

The only compiled support is mysql.  I've got it compiled into apache 1.3.11.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-03 05:25 UTC] sterling at cvs dot php dot net
See the documentation, you register the variable name, not the variable itself.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC