Req #70125 [Opn]: PHP Shebang

From: Date: Wed, 29 Jul 2015 00:27:20 +0000
Subject: Req #70125 [Opn]: PHP Shebang
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194799@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70125&edit=1 ID: 70125 Updated by: cmb@php.net Reported by: tuxy at vmail dot me Summary: PHP Shebang Status: Open Type: Feature/Change Request Package: Scripting Engine problem Operating System: Arch Linux PHP Version: 5.6.11 Block user comment: N Private report: N New Comment: To me it doesn't make sense to introduce a special syntax for scripts starting with a shebang line. Either there'll be the possibility to have PHP code only files, or not. Actually, I'm fine with the latter, as that also can make sense for CLI scripts. Previous Comments: ------------------------------------------------------------------------ [2015-07-24 07:47:18] tuxy at vmail dot me Description: ------------ Feature request to remove the need to use "<?php" when using shebang "#!/usr/bin/php" Note this is only for terminal php scripts anyway, there is no need to use "<?php" with that. Test script: --------------- Example, this is how its done now: #!/usr/bin/php <?php //code Request to have this instead: #!/usr/bin/php //code Expected result: ---------------- n/a Actual result: -------------- n/a ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70125&edit=1

« previous php.bugs (#194799) next »