Req #52980 [Opn]: Allow omitting start tag for CLI scripts
| From: | cataphract@php.net | Date: | Tue, 05 Oct 2010 10:53:05 +0000 |
| Subject: | Req #52980 [Opn]: Allow omitting start tag for CLI scripts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-154920@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52980&edit=1
ID: 52980
Updated by: cataphract@php.net
Reported by: kieran at menor dot dk
Summary: Allow omitting start tag for CLI scripts
Status: Open
Type: Feature/Change Request
Package: PHP options/info functions
Operating System: *nix
PHP Version: Irrelevant
Block user comment: N
New Comment:
This would be nice; relaxing the "-r" switch by not requiring an
argument would be a good option
Previous Comments:
------------------------------------------------------------------------
[2010-10-03 17:13:00] kieran at menor dot dk
Description:
------------
I would like to be able to make my PHP scripts executable so I can do
something like this:
#!/usr/bin/php
echo 'Hello world';
Either have a CLI switch that disables the need for a start tag, or
automatically detect shebang in the beginning of a file.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52980&edit=1