Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53590 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54628 invoked from network); 26 Jun 2011 23:57:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2011 23:57:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=davidkmuir@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=davidkmuir@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pw0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:62869] helo=mail-pw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/CF-01045-477C70E4 for ; Sun, 26 Jun 2011 19:57:40 -0400 Received: by pwi4 with SMTP id 4so2810330pwi.29 for ; Sun, 26 Jun 2011 16:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=gRxqfNxTvII1aM4majjj24Ty3tE15jYEyKKEakQNrg4=; b=LCNpzIcqjIpKkFvUJ4J5o+mx7OjUlDusMqT6oIEiOxNqAlWT8SULflvsAqjZ/ZxWsE JvL/CovqTkTVuBAUgMcF7DfH8A+USY3BiYfhqVn7dN6yYDZPSuMEao3aXjLQCsGw305I 3KON/3FBzm/E+IsPLIStGGAXi1Wa8caQht+OU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=sUBfJvRwUaUbirctG4axvDHQKeo8lf90ItJUq4PuOGZo7DIV0eYfE+s5Qlx/5xdoxO J+HBWn0zL8vMbn95leOLj0KVSeB8HUtVuViHEmTX8WmuP6xs9LCCiMr24vU/9YeS02ht WWYNV4qBKYD7DxJMnl+DjbMVNaIMvGIcU9DAM= Received: by 10.142.118.24 with SMTP id q24mr1009588wfc.392.1309132657530; Sun, 26 Jun 2011 16:57:37 -0700 (PDT) Received: from [192.168.1.38] (static-93-136.net2000.com.au [203.32.93.136]) by mx.google.com with ESMTPS id t12sm4189149wff.22.2011.06.26.16.57.35 (version=SSLv3 cipher=OTHER); Sun, 26 Jun 2011 16:57:36 -0700 (PDT) Message-ID: <4E07C76C.60707@gmail.com> Date: Mon, 27 Jun 2011 09:57:32 +1000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: internals@lists.php.net References: <4E0355AE.4080305@php.net> <4E035929.8030109@php.net> In-Reply-To: <4E035929.8030109@php.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Variable scopes for language constructs (foreach, ...) From: davidkmuir@gmail.com (David Muir) >> personally I find that weird, and unintuitive, but changin that in a major >> or minor version could be changed if we chose to. > I think it's a behaviour that could be changed in some step like from > 5.3 to 5.4 or so. Personally I don't think it would influence existing > implementations much (who uses the key/value of a foreach after the > loop?) or could easily be changed. I do, and I've seen the construct used many times. It would be a major pain to track down and fix if this behaviour changes. Cheers, David