Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59988 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57833 invoked from network); 16 Apr 2012 08:05:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2012 08:05:13 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:47587] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/4E-05733-8B2DB8F4 for ; Mon, 16 Apr 2012 04:05:13 -0400 Received: by wibhr14 with SMTP id hr14so4339570wib.11 for ; Mon, 16 Apr 2012 01:05:09 -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=DI5w/usbA2iDXi0vFDZwrOBQ3cmVAghqANQYPjQJ5EM=; b=LbQtN7S7NPfSg10f2rfm0yGAb3jZjmTPYLLDDasNu8E1XidxJcr+iq0c+pD7Dr4qa3 jX1ie/UENhWvacw51uP0x2cO6Ovtw4HHktqQrb2RLG64OkFP4bLBWo1goUaNJFI+eXyF Cs1CZtES2+oWe7kLk5pI5RelK6NMXTEofv1xiMEjZewhNjNIQ9g4AZTmRRiwObTgReE7 x2pUVxvlv2dFk/N8/YqaKAnjY3rv2fOr6QFetblKB2bznM493GRdrqc8ZYUt/onvhdo/ YBAOKY8+oVq3vZfYjDjJ3Z6rkUCIqUZV/TKaYPLX/rf+OccwWkr8Ar/N3p00MJAJECK6 9lLA== MIME-Version: 1.0 Received: by 10.180.103.35 with SMTP id ft3mr16296018wib.0.1334563509659; Mon, 16 Apr 2012 01:05:09 -0700 (PDT) Received: by 10.223.1.82 with HTTP; Mon, 16 Apr 2012 01:05:09 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Apr 2012 01:05:09 -0700 Message-ID: To: Arvids Godjuks Cc: Yasuo Ohgaki , Pierre Joye , PHP internals , Tom Boutell , Moriyoshi Koizumi Content-Type: multipart/alternative; boundary=f46d043bd7e8ec68e404bdc747d6 Subject: Re: [PHP-DEV] Re: Go for votes for the open tag-less PHP files From: kris.craig@gmail.com (Kris Craig) --f46d043bd7e8ec68e404bdc747d6 Content-Type: text/plain; charset=ISO-8859-1 Arvids, On Mon, Apr 16, 2012 at 12:46 AM, Arvids Godjuks wrote: > What happened with the proposal/RFC for expanding include/require with > additional optional second param to allow for developers to define in place > if he want's a pure PHP file to be included or a template file with direct > HTML output? > I like that proposal and take it over any other, because it gives > developer a choice. And if things do not go the right way and he ends up > screwing up somewhere - he is able to fall back to the old mode just by > modifying the include/require statement (and in a MVC framework with > autoload usage that would be 1-2 places in the whole project). > All that stuff with keywords, removing extensions require a continuous effort from the developers, additional > support from the IDE/editors/other tools. Do we really need all that just > to give people the ability to load their scripts as a pure PHP code? > To my mind a modification to the include/require statements is all there > is required to add that extra thing that Kris want's so badly and does not > require to change your habbits, IDE templates, waiting for IDE/editors/WEB > source code highlight libraries/source analyzers/etc to catch up with the > change. > There is also a question I just raised that is not yet answered that the > keyword/extension thing can just break the valid performance tweak > technique, that is used extensively in any project with big code base. > That may very well be the method proposed in my RFC, too. I haven't made up my mind on that point as I'd like to cover the pros/cons a little more in depth (including the potential perf issue you just raised). A handler approach or something similar will still be necessary as well, since one key reason for my RFC was to make it so that these scripts could be executed directly via the webserver. But as for determining how PHP itself can identify a .phpp file, I think the three best options are: Create new tags, create new keywords, or create new parameters to existing keywords. I keep bouncing back and forth on which one I think is best, which tells me that I need to hear more debate on that. Thoughts? --Kris --f46d043bd7e8ec68e404bdc747d6--