Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59833 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50708 invoked from network); 13 Apr 2012 01:11:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2012 01:11:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:58466] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id ED/8F-00290-33D778F4 for ; Thu, 12 Apr 2012 21:11:16 -0400 Received: by obbta17 with SMTP id ta17so2713700obb.29 for ; Thu, 12 Apr 2012 18:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ZmR82qSpK4UwuBbZu0RFlNzUdn+U2mSqyhH0pQJzbik=; b=AJRsFk7xbght3iegf8knOoRooZNTamYCE3Be+cwBLg6omaNHJRG/gXQG4Pdv9fgC8m Q0BxAQivKrDSMA0VkM07kDV3Z9itj36lZVaEKUaGpd/gdSdWAo5NShir+hs5/VshKlRJ dlr1/YspLd98CwFH4w+GgzCZdxubzUJng4U6E+eTMzue0SqT2GKrtYDUF0y0Kzlh08Rr iEM4SZYXjkYzAt0CycIi4Wpf0ut/hR5PXaKXG5Zps+fsk94e6Lg8sxu6E4o3RmQCOvyw LbrZAaQYTNoacAWyJKkTWKK6Z3XlVImkdLHskDR+DCvvbX3yYou1sfsrBFCRUXErRvpY OmHw== Received: by 10.60.7.196 with SMTP id l4mr444213oea.8.1334279472509; Thu, 12 Apr 2012 18:11:12 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.182.226.9 with HTTP; Thu, 12 Apr 2012 18:10:32 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Apr 2012 10:10:32 +0900 X-Google-Sender-Auth: DXCRfT6bbvT46ejGBelIeOm3boM Message-ID: To: Kris Craig Cc: PHP internals list Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts From: yohgaki@ohgaki.net (Yasuo Ohgaki) 2012/4/13 Yasuo Ohgaki : > Hi, > > If we aren't going to consider saving current code risk, then > we could use both new include and file name convention. > > Introduce application/x-httpd-php-script, then we could > > AddHandler php5-script .php > AddType text/html .php > AddType application/x-httpd-php-source .phps > AddType application/x-httpd-php-script =A0 .ph // .phpp .phpc .phpscript > whatever extension here > > We may need ENV vars for other SAPIs. > > script/script_once for PHP only script includes. > > How about this? Forgot to mention CLI. CLI switch for script only should be included. Putting all 3 RFC together may work as long as basic semantics is the same. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net