Closing php tags (?>) are not required when they are at the end of file. There are multiple reasons to not have them:
1. No worries about outputting whitespace before headers by accident.
2. At least the 'patch' utility adds newline at end of file when applying patches.
3. Various utilities such as sed add newline at end of file, when php files are processed with them.
4. Diffs without newlines at end of file have an additional line stating the absence of newline.
There are several posts on the net advocating against using closing php tags:
http://phpstarter.net/2009/01/omit-the-php-closing-tag/
http://choosetheforce.blogspot.com/2008 ... p-tag.html
Zend Framework prohibits closing php tags.
I propose removing all closing php tags at the ends of php files immediately.





