|  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
 [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.




$array[0][0][0] = 0;

// 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;


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.


Add a Patch

Pull Requests

Add a Pull Request


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-2023 The PHP Group
All rights reserved.
Last updated: Thu Feb 09 08:05:47 2023 UTC