Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60021 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60964 invoked from network); 16 Apr 2012 21:42:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2012 21:42:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:55739] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/40-05733-A329C8F4 for ; Mon, 16 Apr 2012 17:42:19 -0400 Received: by wibhr17 with SMTP id hr17so106165wib.5 for ; Mon, 16 Apr 2012 14:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BE5vlxEnU2SzikpT9PhHrjd65At/rrKEkYRpfT13vcw=; b=lusCN0dYP5yThpKE6THluhiWhWtY7UhZJsVm6D8Fj79oerspY9VFWNMGvCnFIxLw9w CnKPObW/jQWOKmEWYXKKpAVFBdE/WsgZ+F8EN87K8lIDdGukDJ3TMd5gS0ej2h5Gj6UO 3o2ntOwlw1mMcMRSBJRyvzmwZ0TTIiO4RSJQp4g1jMNqKBHcSvWnKT7/A5FNsn2LkcLM aCssip7TX0OvkK2gNsEvnC9IJo43ktamlA0Na/7X7usBcIU+yIWyAMXcZrg/Xw53DgJa xKdaGU2MGofyChYzeFn7ksixJ+y3GQyrCgzF/oqTDlQpiovB6fKSo0l/0ySVDBbwySop 47Cw== MIME-Version: 1.0 Received: by 10.216.139.12 with SMTP id b12mr7966539wej.4.1334612536025; Mon, 16 Apr 2012 14:42:16 -0700 (PDT) Received: by 10.223.1.82 with HTTP; Mon, 16 Apr 2012 14:42:15 -0700 (PDT) In-Reply-To: References: <4F8C577D.4010303@developersdesk.com> <4F8C757C.1020400@developersdesk.com> Date: Mon, 16 Apr 2012 14:42:15 -0700 Message-ID: To: Tom Boutell Cc: PHP Internals Content-Type: multipart/alternative; boundary=0016e6d625741f621004bdd2b29a Subject: Re: [PHP-DEV] Re: Go for votes for the open tag-less PHP files From: kris.craig@gmail.com (Kris Craig) --0016e6d625741f621004bdd2b29a Content-Type: text/plain; charset=ISO-8859-1 Hey guys, can we move the RFC updates back to the threads for each RFC? Subsequent discussion should go there as well. --Kris On Mon, Apr 16, 2012 at 2:30 PM, Tom Boutell wrote: > This has been added in version 1.1.1 of the > source_files_without_opening_tag RFC: > > https://wiki.php.net/rfc/source_files_without_opening_tag > > On Mon, Apr 16, 2012 at 5:25 PM, Tom Boutell wrote: > > I think the 'as' solution is smart. > > > > On Mon, Apr 16, 2012 at 3:54 PM, Kris Craig > wrote: > >> On Mon, Apr 16, 2012 at 12:51 PM, Nikita Popov < > nikita.ppv@googlemail.com>wrote: > >> > >>> On Mon, Apr 16, 2012 at 9:39 PM, Rick WIdmer < > vchkpw@developersdesk.com> > >>> wrote: > >>> > On 4/16/2012 1:02 PM, Kris Craig wrote: > >>> >> > >>> >> On Mon, Apr 16, 2012 at 10:31 AM, Rick > >>> >> WIdmerwrote: > >>> >>> > >>> >>> > >>> >>> More important include doesn't currently allow multiple parms: > >>> >>> > >>> >>> include "foo.bar", 'baz'; > >>> >>> > >>> >>> Parse error: syntax error, unexpected ',' in bla.php on line xx > >>> >> Regarding include/require, I agree that any BC break would be > extremely > >>> >> minimal. In the 10+ years I've been developing PHP, I don't think > I've > >>> >> ever once seen somebody include multiple scripts on a single line (I > >>> >> wasn't even aware that such a thing was allowed). > >>> > See above. It is not allowed now. > >>> > >>> I think there is a misunderstanding here. Inclusions with two > >>> arguments are currently not allowed, yes. The point is that adding > >>> such a second argument would make the grammar ambiguous. > >>> > >>> E.g, consider this: > >>> > >>> func(include 'foo', $someThing); > >>> > >>> Currently this is interpreted as the return value of 'foo' and the > >>> variable $someThing being passed to func. > >>> > >>> If you add a second argument it's unclear what this does. Is this a > >>> two-argument include? I.e. should it be interpreted as > >>> > >>> func((include 'foo', $someThing)); > >>> > >>> Or is this a one-argument include and should be interpreted as > >>> > >>> func((include 'foo'), $someThing); > >>> > >>> In my eyes such an ambiguity renders any proposal to add another > >>> argument to include completely unacceptable. > >>> > >>> The only option is to add a dedicated syntax for it like > >>> > >>> include 'foo' as $flags; > >>> > >>> Nikita > >>> > >>> -- > >>> PHP Internals - PHP Runtime Development Mailing List > >>> To unsubscribe, visit: http://www.php.net/unsub.php > >>> > >>> > >> Hmm I like that idea. Anyone see any downsides to using "as" instead of > >> comma delination? > >> > >> --Kris > > > > > > > > -- > > Tom Boutell > > P'unk Avenue > > 215 755 1330 > > punkave.com > > window.punkave.com > > > > -- > Tom Boutell > P'unk Avenue > 215 755 1330 > punkave.com > window.punkave.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0016e6d625741f621004bdd2b29a--