Ending php tags

When a entire file is php code (not, eg., views) Yii's source code and the code generated by yiic is missing the ending "?>" php tag.  So, just curious, why is this.  I would have thought that violates good coding standards.

The reason for this is that sometimes people accidentally leave blank lines after the ending tag (?>).  Leaving the ending tag out keeps that from happening.  If you have blank lines or spaces after the ending tag, they will be outputted above the html, which can break your doctype

Thanks, that makes sense.