Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16035 invoked from network); 9 May 2013 16:46:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2013 16:46:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=neufeind@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=neufeind@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 91.184.32.3 as permitted sender) X-PHP-List-Original-Sender: neufeind@php.net X-Host-Fingerprint: 91.184.32.3 mail.speedpartner.de Received: from [91.184.32.3] ([91.184.32.3:55343] helo=mail.speedpartner.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/E2-30871-DF2DB815 for ; Thu, 09 May 2013 12:46:54 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.speedpartner.de (Postfix) with ESMTP id 2BDFF620DE for ; Thu, 9 May 2013 18:46:48 +0200 (CEST) Received: from mail.speedpartner.de ([127.0.0.1]) by localhost (mail.speedpartner.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d-X_RFZmP_y0 for ; Thu, 9 May 2013 18:46:48 +0200 (CEST) Received: from collab.speedpartner.de (collab.speedpartner.de [91.184.32.10]) by mail.speedpartner.de (Postfix) with ESMTP id 129FE62105 for ; Thu, 9 May 2013 18:46:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by collab.speedpartner.de (Postfix) with ESMTP id C83CCCEC8D9 for ; Thu, 9 May 2013 18:46:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at collab.speedpartner.de Received: from collab.speedpartner.de ([127.0.0.1]) by localhost (collab.speedpartner.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GRRjnQnGX6KH for ; Thu, 9 May 2013 18:46:44 +0200 (CEST) Received: from [192.168.4.28] (ip-176-199-169-125.unitymediagroup.de [176.199.169.125]) by collab.speedpartner.de (Postfix) with ESMTPSA id 4AD50CE3295 for ; Thu, 9 May 2013 18:46:44 +0200 (CEST) Message-ID: <518BD2F8.3000109@php.net> Date: Thu, 09 May 2013 18:46:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: PHP Internals References: <518BD127.608@php.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] list() inside a foreach() From: neufeind@php.net (Stefan Neufeind) On 05/09/2013 06:42 PM, Sherif Ramadan wrote: > On Thu, May 9, 2013 at 12:39 PM, Stefan Neufeind wrote: > >> Hi, >> >> trying out the following source I was astonished to see that using >> list() does not work directly in a foreach() but works fine if used >> through a temporary variable. >> >> > Hi, > > This feature was already voted in and accepted. > https://wiki.php.net/rfc/foreachlist#vote > > It has been implemented in PHP 5.5 Thanks for the quick reply and sorry for the noise. I didn't follow that closely. Nice to see my thoughts were correct this would be logical :-) Regards, Stefan