Re: Major isssue with foreach() in PHP 4.3.10

From: Date: Fri, 17 Dec 2004 07:36:28 +0000
Subject: Re: Major isssue with foreach() in PHP 4.3.10
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-14107@lists.php.net to get a copy of this message
On Thu, 16 Dec 2004, Jeremy Johnstone wrote: > On Thu, 16 Dec 2004 22:00:11 +0100 (CET), Derick Rethans <derick@php.net> wrote: > > And yes, there is another foreach bug of you do: > > > > foreach($array as $key => $key) > > As you mentioned in the bug report, IMHO that isn't a bug. I can't > think of any instance where this should be a valid syntax (maybe I am > not thinking creatively enough). It's ofcourse totally silly code ;-) Also, this was already in 4.3.1, so no critical thing at all. Atlest it doesn't "leak" in 4.3.10... So the only bug with foreach was in combination with the Zend Engine AFAIK. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#14107) next »