[drupal-devel] no ?> needed at the end of modules

Steven Wittens steven at acko.net
Fri Aug 19 21:29:56 UTC 2005


I'm completely in Károly's camp. For as long as I can remember, PHP 
treats <?php and ?> as separate markers: one to 'enter PHP mode' and one 
to 'leave PHP mode'. In practice, there is no requirement at all that 
they match up. This makes sense if you consider that the vast majority 
of Drupal files only have PHP code in them, and not 
HTML-with-embedded-PHP. Only the PHPTemplates have that really.

At least for the settings.php, we should get rid of the ending tag 
because so many people have problems with whitespace after the last tag 
caused by nasty editors. For the other files, it doesn't matter much, 
but I wouldn't care one bit if we removed it there too.

Steven






More information about the drupal-devel mailing list