#33421 [Opn->Fbk]: foreach problem
ID: 33421
Updated by: tony2001@php.net
Reported By: silviucristea at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: win2000
PHP Version: 4.3.11
New Comment:
What SAPI are you using? (check phpinfo())
Previous Comments:
------------------------------------------------------------------------
[2005-06-22 10:53:00] silviucristea at yahoo dot com
The same error with:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
message:
---
The instruction at "0x100c1c15" referenced memory at "0x00000002". The
memory could not be "read".
---
------------------------------------------------------------------------
[2005-06-21 13:26:22] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-06-21 13:13:39] silviucristea at yahoo dot com
Description:
------------
$a = array(1 => 1, 5 => 5, 32 => 32);
foreach ($a as $n => $n) {
...
}
!!! $n ($key == $value)
windows reports an error message (memmory...)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33421&edit=1
Thread (8 messages)