Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72451 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19387 invoked from network); 11 Feb 2014 00:29:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2014 00:29:39 -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.219.46 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.219.46 mail-oa0-f46.google.com Received: from [209.85.219.46] ([209.85.219.46:56756] helo=mail-oa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/FB-57220-3FE69F25 for ; Mon, 10 Feb 2014 19:29:39 -0500 Received: by mail-oa0-f46.google.com with SMTP id n16so8391587oag.19 for ; Mon, 10 Feb 2014 16:29:36 -0800 (PST) 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=OiGkPnXSsRmW/u7EN+vEcGnHIan4qUl7cIHkbRpQSvg=; b=oi9GlOcxIpzKYNK+yqRDnWiH88QpL1u/A1XernJa4V+3vcXAglx16o8rVK69dKqoXp TS/8KaRUlstYGGXWBJ2G3J0qVLi0BFL9d70InXU73eFCowW7A07/QlamAW57nPC6JNS8 n/QhU7TLatIXjRJcS77yXQBRxFCEQ+/1SY80yI+X43bCgVFYUqN7jitZoH8h1ku3kibK XZrF+98HMrNSUUa6Bgb2kDY9VeB/IF1TzQqrDavH5Xlh8hxehl2azSZ/qX80rgpZUBdh mSEpB4Utc2zBUJAjskMlf8DiCq+76j0PCSVejtphAfIMc+CfDGLI1rr2yjwt0VAAJplT UCAQ== MIME-Version: 1.0 X-Received: by 10.60.45.105 with SMTP id l9mr4044445oem.53.1392078576105; Mon, 10 Feb 2014 16:29:36 -0800 (PST) Received: by 10.182.221.170 with HTTP; Mon, 10 Feb 2014 16:29:35 -0800 (PST) In-Reply-To: References: Date: Mon, 10 Feb 2014 16:29:35 -0800 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0149ce3c073e1104f2168d1e Subject: Re: [PHP-DEV] [RFC] No PHP tags From: kris.craig@gmail.com (Kris Craig) --089e0149ce3c073e1104f2168d1e Content-Type: text/plain; charset=ISO-8859-1 On Sun, Feb 9, 2014 at 11:35 PM, Yasuo Ohgaki wrote: > Hi all, > > "Optional PHP tags by php.ini and CLI options" RFC has been discussed very > long time. > > https://wiki.php.net/rfc/nophptags > > I would like to know is there anyone who would like not to have > this. I think it's good counter measure for LFI, but you might have > different perspective. > > If it is possible, I would like to address as much as opinions possible > before voting. > > Are there anyone who think we should have this? > What is the reason? > > Thank you > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > Though I realize I'm in the minority here, I've always supported the idea of doing something like this. From an MVC standpoint, it would be nice to be able to include script-only files. These scripts would not be able to include template mode scripts, either. The main problem is, as others have stated, the fact that it'll be very prone to human error. If someone includes a script-only file as template mode, they'd be dumping the entire source for all the world to see. The only way around that-- as far as I can figure, at least-- would be to throw an exception when including a template mode file that doesn't contain a PHP open tag. The problem with that, unfortunately, is that it would almost certainly cause BC breakage. That may or may not be acceptable for a major increment like PHP 6, but certainly not for the 5.x branch. There's also the usefulness question. While I agree that it's definitely not a "must have" feature, I would venture to say it does qualify as a "would be nice" feature. Whether or not that merits implementation would be a matter for debate. It might be useful to include this in the next poll we do and see what the larger dev community thinks about this, as it's something we've debated off-and-on for years now. --Kris --089e0149ce3c073e1104f2168d1e--