Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59739 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79610 invoked from network); 11 Apr 2012 17:37:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Apr 2012 17:37:48 -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 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:41088] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/47-36454-B61C58F4 for ; Wed, 11 Apr 2012 13:37:48 -0400 Received: by wgbdq13 with SMTP id dq13so918408wgb.11 for ; Wed, 11 Apr 2012 10:37:45 -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=Cusz7ivCe0/YGIH8ybc00Ty4FG2NhbBE+DYHw6NBMNU=; b=epqoH1X87GnZELFB+cFKXGL9GmdySekSQOJF0K4fX3DYlzDUdhQJInGrnkjQVBoaP9 QmxT07UzSCANoYBbCLneKi4tBn2hPFp3yTCSDE3ab6RIMf85G2Oq3GJPN6rbKkVmT2oo lNk6Dyes/z1Km4NwDMnn3ohKIbplGq4gUGKxHFsIWxRjd1vJ5Tl4+MzibxK8F3GAHgSj FIbDZqZF3QSTJSynUUsDxJnplALY6XmGu1iQIHURdLhBgaT/qlFO0VKytOdzwhIliwAD iJd1QVEm5LMurxiR8H4FFtSj2fM5jVOkVHtbO3mnBZMJh3ODhcOKg3UAnX9X9tEPwNy1 khcg== MIME-Version: 1.0 Received: by 10.180.81.166 with SMTP id b6mr8650782wiy.0.1334165865118; Wed, 11 Apr 2012 10:37:45 -0700 (PDT) Received: by 10.223.79.67 with HTTP; Wed, 11 Apr 2012 10:37:45 -0700 (PDT) In-Reply-To: <4F85A717.20405@lerdorf.com> References: <4F850D06.10701@sugarcrm.com> <4F8515AF.8060706@sugarcrm.com> <4F851FE4.7000706@sugarcrm.com> <4F8539E0.1090701@sugarcrm.com> <4F859063.1010401@lerdorf.com> <-3427386339833244777@unknownmsgid> <4F85A717.20405@lerdorf.com> Date: Wed, 11 Apr 2012 10:37:45 -0700 Message-ID: To: Rasmus Lerdorf Cc: Luke Scott , Stas Malyshev , Yasuo Ohgaki , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d0442811e763d2404bd6ab2fe Subject: Re: [PHP-DEV] Re: Disabling PHP tags by php.ini and CLI options From: kris.craig@gmail.com (Kris Craig) --f46d0442811e763d2404bd6ab2fe Content-Type: text/plain; charset=ISO-8859-1 On Wed, Apr 11, 2012 at 8:45 AM, Rasmus Lerdorf wrote: > On 04/11/2012 08:12 AM, Luke Scott wrote: > > Tom has a "similar" RFC that has two modes: > > > > - Template mode - how it is now > > - Code (or pure code) mode - > optional. ?> is disallowed. > > > > Tom's RFC calls for template mode to remain the default, but allow you > > to add a flag to require/include to interpret the script in "pure > > mode". Allowing an optional starting > backwards compatibility with most classes. > > And my objection to that is similar. An optional templating mode is the > same as optional short_tags. it discourages template mode the same way > short_tags are discouraged. For short_tags that discouragement makes > sense. For templating it doesn't. > I have some objections to that RFC as well, but one question that comes to my mind is, does allowing a "pure code" PHP mode really *discourage* use of templating mode; and, if so, how? From an MVC architectural standpoint, I can actually see some benefit in having a type of code-only PHP file, though Tom's current RFC negates that by allowing HTML bits to be included upstream so I'll probably be voting it down anyway. But conceptually, at least, I think the idea has some merit IMHO. --Kris > > -Rasmus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d0442811e763d2404bd6ab2fe--