Re: [PHP-DEV] big reference bug in (at least) PHP 5.0.5

2005-09-16 Thread Ron Korving
Good point. I think it's somehow undesired behavior, but what can one do to change this? I guess it somehow is desired behavior... My bad I guess, Ron "Matthew Charles Kavanagh" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Ron Korving wrote: > > >The last item in the array is

Re: [PHP-DEV] big reference bug in (at least) PHP 5.0.5

2005-09-16 Thread Matthew Charles Kavanagh
Ron Korving wrote: >The last item in the array is replaced, not by the first one of the second >foreach, but by the item before the last item. That just doesn't make sense >at all. > > This is where you're going wrong (and where I was going wrong in thinking about this before Antony's message).

Re: [PHP-DEV] big reference bug in (at least) PHP 5.0.5

2005-09-16 Thread Ron Korving
Okay, you're right that it starts working fine when I rename the $item to $blah, but your explanation doesn't make much sense. After the first foreach, $item points to the last one, that I already figured. If you ask me, the second foreach should replace the instance of $item, not overwrite it. Bu

Re: [PHP-DEV] big reference bug in (at least) PHP 5.0.5

2005-09-16 Thread Antony Dovgal
On 16.09.2005 16:29, Ron Korving wrote: My apologies for my DOM-mistake today, but right now I came across something that totally stunned me. It's a total paradox situation that just has to be one of the biggest bugs I've ever come across in PHP. Personally, I think it's rather high-priority beca