Re: Re: Quick question about closing PHP tags

From: Date: Wed, 04 Feb 2009 10:07:29 +0000
Subject: Re: Re: Quick question about closing PHP tags
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-42909@lists.php.net to get a copy of this message
On Wed, Feb 4, 2009 at 12:03 PM, Arvids Godjuks <arvids.godjuks@gmail.com> wrote: > Hi all. > > My 2 cents. > > 1). Major IDE have an option - trim trailing spaces. Atleast ZDE does, i'm > using it and I have no problems with spaces (although I tend to use only > <?php and don't put ?> at the end of file) > > 2). Extension is really a bad idea because many frameworks tend to use .inc > extension for included files. My applications have only one file with .php > extension - that's index.php. > > 3). BOM is a pain, but really parser could just trim it out if it's present. > As for me, I use Unicode without BOM (ZDE doesn't place BOM, Visual Studio > has an encoding named "UTF-8 (without BOM)". Most editors also deal with > this issue in similar manner, so just see the settings. > > So, leave it as is. Better spend time on learning PHP, MySQL and related > techologies than think about such unimportant and mostly silly things. > Arvid. > The core idea was *only* to do this if it actually helps speed up things. I am pretty sure than php 5.3++ properly ignore the document's BOM. Of maybe it was meant for 6? Not sure need to test this. G.

« previous php.internals (#42909) next »