Issue Bug Closed

#47828Short PHP opening/closing Tags in temp_CACHED files cause errors

Gabriel Kaufmann TYPOworx GmbH | NewMedia 05/02/13, 14:40 updated 01/16/15, 17:42

Description

The “temp_CACHED”-Files written into “typo3conf/” contain the content of a list of files. Closing PHP tags and long opening PHP tags
<?php ?>
are stripped from these files. However, I noticed that short PHP opening-/closing Tags
<?...?>
are not stripped, but included for every included file.

This is absolutely unnesseccary and can also lead into problems.

Some developers begin to strip-off the closing-tags at the end of their PHP-Files to avoid writing blanks to the PHP-Output.

The blanks may lead to invalid xHTML (for the W3C Validator).

As the additional opening-/closing tags are just overload for the temp_CACHE files they should be simply stripped of except the first one. The closing-tag should also be stripped off.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.