php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2373 2 dimensional arrays show wrong values
Submitted: 1999-09-24 05:19 UTC Modified: 2000-03-10 12:37 UTC
From: tbehn at nextlevel dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 2 OS: SunOS fiete 5.5.1 Generic_103640
Private report: No CVE-ID: None
 [1999-09-24 05:19 UTC] tbehn at nextlevel dot de
Hello,

when I define a two dimensional array with something like

for .... {
$row1 = sybase_fetch_row($result);
$datum = $row1[1];
$row_w[$datum][1] = $row1[1];
$row_w[$datum][2] = $row1[2];
$row_w[$datum][3] = $row1[3];
$row_w[$datum][4] = $row1[4];
$row_w[$datum][5] = $row1[5];
$row_w[$datum][6] = $row1[6];
}

sometimes (not everytime) for example $row_w[$datum][2] as the value "array" insted of the actual value. Sometimes the array values are copied instead of containing the correct value.

This worked fine under php3.

Regards
Torsten

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-10 12:37 UTC] andi at cvs dot php dot net
This problem shoudl be fixed. If it isn't please open a new bug report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 20:01:34 2025 UTC