Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
12.2
Description
PHP script can be made to be directly executable when first line contains string "#!" followed by path to PHP executable (also called shebang).
#!/usr/bin/php
<?php
echo "Hello World!\n";
In this case blank lines after PHP open tag are applied not from "After Open Tag" but from "After open tag in HTML".
Steps to reproduce:
- Open Options and in Formatting > PHP > Blank Lines
- Set "After Open Tag" to 1
- Set "After Open Tag in HTML" to 3
- Create new file with content above
- Format file - there will be three blank lines after "<?php" and not one as expected
Actual result:
#!/usr/bin/php
<?php
echo "Hello World!\n";
Expected result:
#!/usr/bin/php
<?php
echo "Hello World!\n";
Attachments
Issue Links
- links to