[TYPO3-core] CGL proposal: Dropping the closing PHP tag

Helmut Hummel helmut.hummel at typo3.org
Mon Oct 29 22:33:06 CET 2012


On 23.10.12 11:20, Ernesto Baschny [cron IT] wrote:

> long ago our .php files were indeed "XML" (PHP embedded in XHTML). This
> is simply not the case anymore. Our PHP files are not embedded in XML,
> we do *not* encourage to do that, because we separate them (for good
> reasons, which I don't think you will argue).
> So considering that we don't want to embedd PHP in XML, it sounds
> strange that we need to enforce a XML rule onto PHP files.

I second that.

> I am also +1 on removing the closing "?>"

Yes, please.

> (or at least the check).

I would only remove the check if we agree on removing the closing tag.
However, I would change the check to allow (exactly) one trailing 
newline after the closing tag if we still want to stick to "old-school" 

Kind regards,

Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 Core Developer, TYPO3 Security Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org

More information about the TYPO3-team-core mailing list