|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33421 foreach problem
Submitted: 2005-06-21 13:13 UTC Modified: 2005-07-02 01:00 UTC
From: silviucristea at yahoo dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 4.3.11 OS: win2000
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-06-21 13:13 UTC] silviucristea at yahoo dot com
$a = array(1 => 1, 5 => 5, 32 => 32);
foreach ($a as $n => $n) {

!!! $n ($key == $value)

windows reports an error message (memmory...)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-22 10:53 UTC] silviucristea at yahoo dot com
The same error with:

The instruction at "0x100c1c15" referenced memory at "0x00000002". The memory could not be "read".
 [2005-06-22 17:35 UTC]
What SAPI are you using? (check phpinfo())
 [2005-06-23 09:55 UTC] silviucristea at yahoo dot com
Server API - Apache
 [2005-06-23 11:37 UTC]
Can't reproduce.
Please provide more info.
 [2005-06-24 13:59 UTC] silviucristea at yahoo dot com
i got this error on 3 computers with the same application,
but i can't reproduce the error in a simple cod (example).
 [2005-06-24 14:22 UTC]
We can't fix something that we can't reproduce.
We really need a reproduce case.
Please reopen the report when you have it.
 [2005-07-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 09:01:28 2024 UTC