Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15974 invoked from network); 12 Apr 2012 23:46:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2012 23:46:19 -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 Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.45 as permitted sender) X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 209.85.210.45 mail-pz0-f45.google.com Received: from [209.85.210.45] ([209.85.210.45:53974] helo=mail-pz0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/E7-00290-A49678F4 for ; Thu, 12 Apr 2012 19:46:19 -0400 Received: by dacx6 with SMTP id x6so3136014dac.18 for ; Thu, 12 Apr 2012 16:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=wqjoAG0YN+MnI3bJ8z1v4mTK4VC21Zb90Qkn0cFJL8I=; b=XlFofwmoxfIDzThLGI6oiL4GxiaGk3EhfKhK8ujsZmOA00K/G4wJNrCPt5xrn8HsNf w5Dgcsl7FIj556gp889EdwdlANQNL4tOJfRAjQ03a7DniLQCzJsb1Z0tk4hXW1yNBoWO vd/Eppb4vNq6VsdMGiq8A2hImN/Tu9044+t8OdH/SiXEC8ptDt6IvfnMUYvkFsRTrm0a rZY5md8rvV6bvXeEGNRr/iYDUi5EQ2CPfHLRtIH6GsVTbj/VdTgqD+zbqIp+OVkBc0fi xNWq8+KM648JcJ406POQzRoKZmBHXuUAvaE3W3w5Z5xpYRpLE1ejQzpjdq2YDmdRBssl tB7g== Received: by 10.68.223.33 with SMTP id qr1mr1041951pbc.47.1334274375546; Thu, 12 Apr 2012 16:46:15 -0700 (PDT) Received: from [192.168.0.5] (dsl-202-173-152-56.vic.westnet.com.au. [202.173.152.56]) by mx.google.com with ESMTPS id vh10sm6981441pbc.29.2012.04.12.16.46.13 (version=SSLv3 cipher=OTHER); Thu, 12 Apr 2012 16:46:14 -0700 (PDT) Message-ID: <4F876943.8030105@gmail.com> Date: Fri, 13 Apr 2012 09:46:11 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Yasuo Ohgaki CC: Kris Craig , PHP internals list References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts From: davidkmuir@gmail.com (David Muir) On 13/04/12 09:38, Yasuo Ohgaki wrote: > Hi, > > 2012/4/13 Kris Craig : >> Per recent discussions, I have drafted an RFC for this. This proposal >> offers what I believe to be a more sane and realistic approach to >> addressing the question of incorporating a new breed of tag-less PHP >> scripts. >> >> https://wiki.php.net/rfc/phpp > This may work for LFI issue for new codes. > Few questions. > > CLI may use .phpp as PHP script always. (i.e. execute w/o It's like DOS, though. > > How do you enforce .phpp as script only for Web? > Is it a rule for configuration? or .phpp just never supposed to locate > under docroot? > It relates previous question. How about bootstrap script for frameworks? > >> A regular .php script cannot be included from a .phpp script. An E_WARNING will be thrown for include and an E_RECOVERABLE_ERROR will be thrown for require; in both instances, the included file will be ignored. > Some people may try to make .phpp handled by web. > I cannot tell if this setting is going to be popular, but if it > does, isn't it the end of embedded PHP? > It might be good if PHP is more tolerant for this usage. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > That's a huge WTF that a templating library can't be written as .phpp, because it then won't be able to load a template. David