Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14105 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49378 invoked by uid 1010); 17 Dec 2004 00:03:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48890 invoked from network); 17 Dec 2004 00:03:34 -0000 Received: from unknown (HELO wproxy.gmail.com) (64.233.184.202) by pb1.pair.com with SMTP; 17 Dec 2004 00:03:34 -0000 Received: by wproxy.gmail.com with SMTP id 58so2743wri for ; Thu, 16 Dec 2004 16:03:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=iQfqJ4ahX4u+1jVzhQvltmj8da/zS5dkuFx/NPJcAZp8GYM39DH6DHafVD66AA09Ppw4N1XoJlAun30pNXB4EjcVL4sB3srfeoD0fXYZW75cdR0+9lbaP4+ohaqAgJUgAY6G673nkYlFf1IagPkRDn4E9OxE2+ZVo3o1zkVzJxM= Received: by 10.54.8.46 with SMTP id 46mr27684wrh; Thu, 16 Dec 2004 16:03:34 -0800 (PST) Received: by 10.54.28.61 with HTTP; Thu, 16 Dec 2004 16:03:34 -0800 (PST) Message-ID: <90e24d4e04121616033476167c@mail.gmail.com> Date: Thu, 16 Dec 2004 18:03:34 -0600 Reply-To: Jeremy Johnstone To: Derick Rethans Cc: internals@lists.php.net In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <90e24d4e0412161153296140b8@mail.gmail.com> Subject: Re: [PHP-DEV] Major isssue with foreach() in PHP 4.3.10 From: phpdev@gmail.com (Jeremy Johnstone) 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). -- --------------------------- Jeremy Johnstone http://www.jeremyjohnstone.com jsjohnst@php.net