ID: 40608
Updated by: [EMAIL PROTECTED]
Reported By: eric dot broersma at phil dot uu dot nl
Status: No Feedback
Bug Type: Arrays related
Operating System: Sun Solaris
PHP Version: 5.2.1
New Comment:
A quick fix that somehow forces PHP to work again, is to access the key
in the second(inner) loop:
echo 'a';
foreach ( $w as $x ) {
echo 'b' . $x;
foreach ( $w as $z ) {
key($w);
echo 'c' . $z;
break 1;
}
echo 'e' . $x;
}
echo 'f';
Outputs: ab0c0e0b1c0e1f
Previous Comments:
------------------------------------------------------------------------
[2007-04-29 22:16:47] chris at dented-planet dot net
I can reproduce this with PHP-CLI 5.2.1 on Mac OS X 10.4.9 Intel.
------------------------------------------------------------------------
[2007-03-31 01:00:01] 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".
------------------------------------------------------------------------
[2007-03-23 07:53:12] [EMAIL PROTECTED]
I cannot reproduce this on Gentoo with 5.2.1
------------------------------------------------------------------------
[2007-03-20 16:40:30] [EMAIL PROTECTED]
I wasn't feeling spunky enough to mark the bug "closed", though...
figured I'd better leave that to the real PHP devs...
------------------------------------------------------------------------
[2007-03-20 16:35:58] [EMAIL PROTECTED]
My bad... pretending to be a dev myself there, by selecting the "Quick
Fix" option to "notify" the original bug submitter (and all readers)
about the snapshot option.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40608
--
Edit this bug report at http://bugs.php.net/?id=40608&edit=1