Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54298 invoked from network); 2 Sep 2012 23:07:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2012 23:07:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=jared.williams@ntlworld.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jared.williams@ntlworld.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ntlworld.com designates 81.103.221.47 as permitted sender) X-PHP-List-Original-Sender: jared.williams@ntlworld.com X-Host-Fingerprint: 81.103.221.47 mtaout01-winn.ispmail.ntl.com Solaris 10 (beta) Received: from [81.103.221.47] ([81.103.221.47:49236] helo=mtaout01-winn.ispmail.ntl.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/EB-17065-0C6E3405 for ; Sun, 02 Sep 2012 19:07:45 -0400 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20120902230741.OHAB28961.mtaout01-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Mon, 3 Sep 2012 00:07:41 +0100 Received: from p2 ([82.3.17.226]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20120902230741.TSGJ23973.aamtaout03-winn.ispmail.ntl.com@p2> for ; Mon, 3 Sep 2012 00:07:41 +0100 To: Date: Mon, 3 Sep 2012 00:07:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: Ac2JX8U3u2khVDCUTJqTh5K7OwLbgg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 Message-ID: <20120902230741.TSGJ23973.aamtaout03-winn.ispmail.ntl.com@p2> X-Cloudmark-Analysis: v=1.1 cv=GaEGOwq9FwezmTggA+b6yC6zDZF2HYaK6RN/tSqdnVA= c=1 sm=0 a=uObrxnre4hsA:10 a=oHf_AeXmDeQA:10 a=kj9zAlcOel0A:10 a=V6MaMEEdnUNVRHHQzScA:9 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: Foreach list behaviour From: jared.williams@ntlworld.com ("Jared Williams") Hi, Just looking at the foreach list behaviour and it does this... $i = [1, 2, 3]; foreach($i as list($a, $b)) var_dump($a, $b); Outputs.... NULL NULL NULL NULL NULL NULL There is no test I can see covering this, so cannot tell if its expected. To me, $i does not meet the expected format, so should be some sort of error happening. Jared