PHP 4.0 Bug #2373: 2 dimensional arrays show wrong values
| From: | tbehn at nextlevel dot de | Date: | Fri, 24 Sep 1999 09:19:31 +0000 |
| Subject: | PHP 4.0 Bug #2373: 2 dimensional arrays show wrong values | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11267@lists.php.net to get a copy of this message | ||
From: tbehn@nextlevel.de
Operating system: SunOS fiete 5.5.1 Generic_103640-24 sun4u sparc SUNW,Ultra-1
PHP version: 4.0 Beta 2
PHP Bug Type: Scripting Engine problem
Bug description: 2 dimensional arrays show wrong values
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