file-header icon indicating copy to clipboard operation
file-header copied to clipboard

new PHP file doesn't start with <?php

Open lsalomon opened this issue 7 years ago • 1 comments

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

lsalomon avatar Oct 31 '18 15:10 lsalomon

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

Shinrai avatar Sep 04 '19 21:09 Shinrai