Re: [RFC] New .phpp File Type for Pure-Code PHP Scripts

From: Date: Fri, 13 Apr 2012 01:10:32 +0000
Subject: Re: [RFC] New .phpp File Type for Pure-Code PHP Scripts
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-59833@lists.php.net to get a copy of this message
2012/4/13 Yasuo Ohgaki <yohgaki@ohgaki.net>: > 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 > > 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

« previous php.internals (#59833) next »