|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-07-24 07:47 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 03:00:01 2025 UTC |
@tuxy We cannot remove email. Please use mail address that you wouldn't mind next time. Anyway, what you are proposing breaks compatibility. "PHP executes script in embedded mode always" ------------- #!/use/bin/php Hello! Current date is <?php echo date('Y/m/d'); ?> ! ------------- This script is perfectly valid with current PHP. We need some RFC that "allows to start PHP with non-embedded mode" as I mentioned earlier. e.g. ------------- #!/use/bin/php -X // Non-embedded mode, so this code is syntax error. Hello! Current date is <?php echo date('Y/m/d'); ?> ! -------------