Re: foreach nastiness with references (bug #21702)
| From: | Moriyoshi Koizumi | Date: | Wed, 22 Jan 2003 07:32:31 +0000 |
| Subject: | Re: foreach nastiness with references (bug #21702) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93595@lists.php.net to get a copy of this message | ||
Just FYI, here's a relevant commit made by Andi two years ago:
http://cvs.php.net/diff.php/Zend/zend_execute.c?r1=1.222&r2=1.223&ty=h
Moriyoshi
"John Coggeshall" <john@coggeshall.org> wrote:
> Ah, I understand now... This perhaps in a documentation problem then
> after all, as there is no way to change this behavior cleanly that I can
> see... What about making a copy of the array and all of the references
> associated with that array instead of just using the real array?
>
> Just a thought.
>
> John