Re: PHP 4.0 Bug #5270: Nested foreach() using a copy of the same array does not work properly.

From: Date: Thu, 29 Jun 2000 13:52:02 +0000
Subject: Re: PHP 4.0 Bug #5270: Nested foreach() using a copy of the same array does not work properly.
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-22772@lists.php.net to get a copy of this message
On Thu, 29 Jun 2000, Stanislav Malyshev wrote: > I fear that won't help. The problem here is not that it moves the pointer, > the problem seems to be that both foreach's actually work on the same > array (because you do not modify it, so it tries to be "smart" and makes > second array copy of the first). That may be foreach's problem, but I still think updating certain functions so that they don't modify the internal pointer would be good. -Andrei "The secret of flying is to throw yourself at the ground, and miss." -- Douglas Adams

« previous php.dev (#22772) next »