Req #52980 [Opn->Sus]: Allow omitting start tag for CLI scripts

From: Date: Wed, 21 Mar 2018 22:47:48 +0000
Subject: Req #52980 [Opn->Sus]: Allow omitting start tag for CLI scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214440@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52980&edit=1 ID: 52980 Updated by: cmb@php.net Reported by: kieran at menor dot dk Summary: Allow omitting start tag for CLI scripts -Status: Open +Status: Suspended Type: Feature/Change Request Package: CGI/CLI related Operating System: *nix PHP Version: Irrelevant Block user comment: N Private report: N New Comment: There is an RFC regarding this topic[1]. Feel free to either revive this RFC or start an alternative RFC[2]. I'm suspending this ticket for the time being. [1] <https://wiki.php.net/rfc/nophptags> [2] <https://wiki.php.net/rfc/howto> Previous Comments: ------------------------------------------------------------------------ [2010-10-05 12:53:04] cataphract@php.net This would be nice; relaxing the "-r" switch by not requiring an argument would be a good option ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=52980&edit=1

« previous php.bugs (#214440) next »