Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67378 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13649 invoked from network); 9 May 2013 16:43:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2013 16:43:16 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.46 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.46 mail-oa0-f46.google.com Received: from [209.85.219.46] ([209.85.219.46:57962] helo=mail-oa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/62-30871-422DB815 for ; Thu, 09 May 2013 12:43:16 -0400 Received: by mail-oa0-f46.google.com with SMTP id h2so3700451oag.5 for ; Thu, 09 May 2013 09:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=/+PH49zSmu879TQW4RHe8XrBtBcTN3fskQhb0Xp9EX4=; b=QeUJ5s84qf33I9hyK73YCb+XMhZJRnAriTt8ilPtbKkuXVCiirwktR6h+WQjQNWuxS liUbbFTJOQd+nS5EQWlzVV7IoPSl2KFdPalzN35sNYB95pvcer3hyAOEgCaPQrP4lkJt I2mTe9d5VToUYjyWgLBG40XYH75AqMB4PT+Ar/7uJ7uJdINstMvE035kyRBOfvHXTVHl 8TA2Yh3qanrc/YYR+oBUT+k19vy1hIBM2JzrwyGaj8+UQJ6mVhUf9LgvKYISm3bzpkW7 V7aBmb4qNYW0NPqn/vMQYfB9GHYF8SVCvUnTZKbBqZc4U3cWzHaRYLWlGlcGDo2HU15m iDZQ== MIME-Version: 1.0 X-Received: by 10.60.56.168 with SMTP id b8mr4637297oeq.5.1368117794012; Thu, 09 May 2013 09:43:14 -0700 (PDT) Received: by 10.182.49.136 with HTTP; Thu, 9 May 2013 09:43:13 -0700 (PDT) In-Reply-To: <518BD127.608@php.net> References: <518BD127.608@php.net> Date: Thu, 9 May 2013 18:43:13 +0200 Message-ID: To: Stefan Neufeind Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0149ca961fd1c904dc4bbfcf Subject: Re: [PHP-DEV] list() inside a foreach() From: nikita.ppv@gmail.com (Nikita Popov) --089e0149ca961fd1c904dc4bbfcf Content-Type: text/plain; charset=ISO-8859-1 On Thu, May 9, 2013 at 6: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. > > Would allowing using list() inside the foreach()-statement be desired > behaviour? Or is it just me? :-) > Support for this has been added in PHP 5.5. RFC: https://wiki.php.net/rfc/foreachlist Nikita --089e0149ca961fd1c904dc4bbfcf--