php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
40 - 24 = ?
Subscribe to this entry?

 
 [2005-06-21 13:13 UTC] 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...)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-22 10:53 UTC] 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-22 17:35 UTC] tony2001@php.net
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] tony2001@php.net
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).
sorry...
 [2005-06-24 14:22 UTC] tony2001@php.net
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: Thu Apr 18 08:02:42 2024 UTC