Bug #17608
closedchr(10) after closing php tag
0%
Description
In different files there is a chr(10) after the closing php tag (?>).
Example:
t3lib/class.t3lib_cs.php
t3lib/class.t3lib_div.php
This is not really correct, since PHP recommends to delete any characters after the closing php tag.
Or it could result in a error like "Warning: Cannot modify header information - headers already sent by".
(issue imported from #M6354)
Files
Updated by Oliver Hader about 17 years ago
The atttached patches remove found spaces/newslines after the closing tag "?>" of *.php and *.inc files of the TYPO3_4-1 branch and Trunk.
Updated by Thomas Breuss about 17 years ago
Maybe it's a idea to NOT using this closing tags in future?
See: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html
B.2. PHP File Formatting
B.2.1. General
For files that contain only PHP code, the closing tag ("?>") is never permitted. It is not required by PHP. Not including it prevents trailing whitespace from being accidentally injected into the output.
Updated by Georg Ringer over 13 years ago
- Status changed from Accepted to Closed
- Target version deleted (
0)
cleaned already