From:             young at sl dot com dot ua
Operating system: FreeBSD 4.7
PHP version:      4.3.2
PHP Bug Type:     Arrays related
Bug description:  Error while using foreach

Source code N1:
-----
foreach ($sqldata as $row) {
$item = $row;
print_r($item);
}
-----
Result 1:
Array
(
[DURATION] => 7
)
Array
(
[DURATION] => 230
)
Array
(
[DURATION] => 230
)
-----
Source code 2:
-----
foreach ($sqldata as $item) {
print_r($item);
}
-----
Result 2:
-----
Array
(
[DURATION] => 7
)
Array
(
[DURATION] => 230
)
Array
(
[DURATION] => 50
)
------
-- 
Edit bug report at http://bugs.php.net/?id=24118&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24118&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24118&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24118&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24118&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24118&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24118&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24118&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24118&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24118&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24118&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24118&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24118&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24118&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24118&r=gnused

Reply via email to