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

David Norman deekayen at deekayen.net
Sat Aug 20 03:04:33 UTC 2005


I'll cite PEAR Coding Standards as my basis for keeping ?> at the end of
files.

http://pear.php.net/manual/en/standards.file.php

Karoly Negyesi wrote:
> Hi!
>
> Can anyone (Goba?) confirm or not confirm that ?> is unnecessary at
> the  end of included PHP files (like Drupal modules)?
>
> If it turns out that it is not needed, I think we need to adapt this 
> practice because this avoids that some whitespace at the end of cause 
> havoc.
>
> I tested and this works with PHP4 but I'd like to see something more 
> "official" on this.
>
> Regards
>
> NK
>




More information about the drupal-devel mailing list