RE: [PHP-DEV] shebang skipping in 5.3.0
| From: | Richard Lynch | Date: | Thu, 10 Sep 2009 19:21:21 +0000 |
| Subject: | RE: [PHP-DEV] shebang skipping in 5.3.0 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45557@lists.php.net to get a copy of this message | ||
On Fri, September 4, 2009 10:51 pm, Andi Gutmans wrote:
> Shebang is for command line scripts (php-cli). It does not make sense
> to
> support it for Web server scripts. It just adds unnecessary
> code/complexity to that code base. Removing the support from php-cgi
> was
> really a remnant of the old days when cli and cgi were the same SAPI.
> I think we are better off this way.
At the risk of being ridiculed...
I have, in the past, had a script that worked both as a web page and
as a CGI (now CLI) script.
Granted, it's pretty trivial to just do an include in one or the
other, but I actually used the feature of #! being removed in mod_php
SAPI, once upon a time.
It may even still be in some legacy code out there for me.
--
Some people ask for gifts here.
I just want you to buy an Indie CD for yourself:
http://cdbaby.com/search/from/lynch