Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new PHP file doesn't start with <?php #60

Open
lsalomon opened this issue Oct 31, 2018 · 1 comment
Open

new PHP file doesn't start with <?php #60

lsalomon opened this issue Oct 31, 2018 · 1 comment

Comments

@lsalomon
Copy link

using atom 1.32.1, ide-php 0.7.15, on iOS 10.13.6

@lsalomon lsalomon changed the title PHP files doesn't start with <?php new PHP file doesn't start with <?php Oct 31, 2018
@Shinrai
Copy link

Shinrai commented Sep 4, 2019

This would be an issue with ATOM not file-header. Unless you KNOW your enviroment your PHP files should ALWAYS begin with <?php as <?. The default is <? is acceptable. However if you are mixing anything else which uses <? to start it's tag and this setting is enabled it will cause errors. Which is why it's usually disabled.

https://www.php.net/manual/en/ini.core.php#ini.short-open-tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants