I have no idea how many php files in D7 have extra white space after closing php tags, but it's a lot. It's nothing but a source of constant trouble. Please make all the extra space go away.
I have no idea how many php files in D7 have extra white space after closing php tags, but it's a lot. It's nothing but a source of constant trouble. Please make all the extra space go away. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
They also have a mixture of line endings too. /DM Dolphin - Ajax Masturbation |
It's often the cause of the commom "headers already sent...." warning. I use CuteFTP to edit files directly on the server, and a lot of times after saving the file to the server after an edit, this warning appears. Once I remove the extra space, everything's OK. There's no reason to have this extra space, and at least one good reason not to have it.... so it may as well not be there. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
CuteFTP one of the best :) |
Many editors will trim whitespace too /DM Dolphin - Ajax Masturbation |
OK - on another related note. There are missing closing php tags in many files too. C'mon guys, this is just slap-dash. /DM Dolphin - Ajax Masturbation |
Hello DeeEmm! Now it isn't necessary to have close tags in files that contain only PHP. http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html Regard |
Leonid: well on hotgator its a problem ..took me about 1 week to find out (Im not programmer) Im getting error on some mod installation because of missing closing tags in lang files. So apparently on some hosts it can cause problems and in some files because white space... |
RE: Hello DeeEmm! Now it isn't necessary to have close tags in files that contain only PHP. http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html Regard What? I don't get a hello? It's my thread... and I don't get a hello? I'm crushed :'( My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
I have found that white space at the end of the php file generally does not matter as long as the line endings are proper. CRLF for Windows, LF for Linux and MacOS X https://www.deanbassett.com |
What if we just added the closing tags in each file; would that help or hurt the functionality? |
This forum thread was from 2010. If you are having issues, please start a new thread and we will help. Geeks, making the world a better place |
What if we just added the closing tags in each file; would that help or hurt the functionality?
https://www.deanbassett.com |