I feel like we need to discuss this again sometime: http://php.net/manual/en/language.basic-syntax.phptags.php
If a file is pure PHP code, it is preferable to omit the PHP closing tag at the end of the file. This prevents accidental whitespace or new lines being added after the PHP closing tag, which may cause unwanted effects because PHP will start output buffering when there is no intention from the programmer to send any output at that point in the script.
From the PSR-2 page:
2.2. Files - All PHP files MUST use the Unix LF (linefeed) line ending. All PHP files MUST end with a single blank line. The closing ?> tag MUST be omitted from files containing only PHP.
These seem to be in conflict and/or we don't really do 100% either direction. While we often mix HTML/PHP, the ending declaration is most likely PHP, yet our files have a lot of newlines, closing tags, or mixture of both.
Can we standardize this a bit for security's sake?
I feel like we need to discuss this again sometime: http://php.net/manual/en/language.basic-syntax.phptags.php
From the PSR-2 page:
These seem to be in conflict and/or we don't really do 100% either direction. While we often mix HTML/PHP, the ending declaration is most likely PHP, yet our files have a lot of newlines, closing tags, or mixture of both.
Can we standardize this a bit for security's sake?