Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49365 invoked from network); 13 Apr 2012 01:10:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2012 01:10:23 -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.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:47296] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/4F-00290-EFC778F4 for ; Thu, 12 Apr 2012 21:10:23 -0400 Received: by werh12 with SMTP id h12so1917372wer.29 for ; Thu, 12 Apr 2012 18:10:20 -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=igH9HwtRN65HdGAlH2KUd6DeTnmMg1awwRcnesQSmfQ=; b=EyXqRYpGgb6DfWJjKgCLVQmT054tVBu3tEXAKEHaGSrmY9pNNgggiTUz0I2nbb3bgQ IpISdQKha8BsZv4LUYUvJ+aR3B0vgGiqK2wrVytwhdZe858w/pjR6pzSiiBFYMkO0Yip 1SjKVzu8GGeOTxpDwHJO63uE9Jvyz/6IV90MV7qlNKb/gbMkqaf8Azf7vM4uMWH8lojK r5GJOqcUVPdkTSHxSt0FP6szN6IgFm+Yr91M0gi6PILkrZ3qonVObzaRkRkG8ttlfuWK hhVFT2BsMwrp56PoFFa3qT2pXk9dP27p2+8aoPg0cNcVaqVG4MeG6pPaLqmyJn9cIjlG Da3w== MIME-Version: 1.0 Received: by 10.180.81.166 with SMTP id b6mr421590wiy.0.1334279420207; Thu, 12 Apr 2012 18:10:20 -0700 (PDT) Received: by 10.223.79.67 with HTTP; Thu, 12 Apr 2012 18:10:20 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 Apr 2012 18:10:20 -0700 Message-ID: To: Yasuo Ohgaki Cc: PHP internals list Content-Type: multipart/alternative; boundary=f46d0442811edf63a804bd852240 Subject: Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts From: kris.craig@gmail.com (Kris Craig) --f46d0442811edf63a804bd852240 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Apr 12, 2012 at 6:03 PM, Yasuo Ohgaki wrote: > 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 .ph // .phpp .phpc .phpscript > whatever extension here > Yeah that's more or less what I had in mind, actually. There'd be work involved, no question, but there's no reason why it shouldn't be doable. > > We may need ENV vars for other SAPIs. > I'm only familiar with installing PHP on Apache and IIS, so I honestly have no idea how it would work with other webservers. I'd wager that it's possible enough, but as for the "how," I'll have to defer to those who have experience working with said webserver(s). > > script/script_once for PHP only script includes. > Would the new "script" keyword behave like include or require? I'm very wary of the idea of having a special include to treat .php files the same as .phpp files, simply because it would seem to add a lot of complexity and potential for confusion, but I won't necessarily rule it out altogether, either. Right now I'm just working on reassuring those who are afraid this will cause every single framework on the internet to spontaneously combust lol. > > How about this? > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > --f46d0442811edf63a804bd852240--