[drupal-devel] no ?> needed at the end of modules
kbahey at gmail.com
Sun Aug 21 13:14:33 UTC 2005
Here is the quote for those who did not click through
+ Note: The closing tag of a PHP block at the end of a file is
optional, and in some cases + not using it is helpful when using
output buffering and include() or require().
I think the matter is settled then. The only part left is whether this
encourages sloppy programming for newbies, which is not a big deal I
think, given that this is a language feature.
On 8/21/05, Gabor Hojtsy <gabor at hojtsy.hu> wrote:
> > Are we relying on a documented feature of the language, or just
> > behavior that happened to be there? If it is documented, then we can
> > safely go for it. If not, then am a bit apprehensive of going with it.
> > We can ask the PHP team if they are willing to formalise this behavior
> > by a) committing to it in the future and b) documenting it.
> > How about that?
> It IS documented, and IS encouraged by the PHP documentation. I already
> posted the RTFM link! I also explained how comitted the PHP website
> itself is towards this very practice:
More information about the drupal-devel