Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14107 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15338 invoked by uid 1010); 17 Dec 2004 07:36:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15142 invoked from network); 17 Dec 2004 07:36:34 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 17 Dec 2004 07:36:34 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id iBH7aXaH004629 for ; Fri, 17 Dec 2004 08:36:33 +0100 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id iBH7aTa3004622; Fri, 17 Dec 2004 08:36:30 +0100 Date: Fri, 17 Dec 2004 08:36:28 +0100 (CET) X-X-Sender: derick@localhost To: Jeremy Johnstone cc: internals@lists.php.net In-Reply-To: <90e24d4e04121616033476167c@mail.gmail.com> Message-ID: References: <90e24d4e0412161153296140b8@mail.gmail.com> <90e24d4e04121616033476167c@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] Major isssue with foreach() in PHP 4.3.10 From: derick@php.net (Derick Rethans) On Thu, 16 Dec 2004, Jeremy Johnstone wrote: > On Thu, 16 Dec 2004 22:00:11 +0100 (CET), Derick Rethans 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