Re: why is closing tag evil?

From: Date: Wed, 31 Aug 2005 20:23:01 +0000
Subject: Re: why is closing tag evil?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20703@lists.php.net to get a copy of this message
On 8/31/05, Matt Craig <mcraig@leadehealth.com> wrote: > In http://pear.php.net/bugs/bug.php?id=1763 > it is said that ?> is evil and therefore not included in the class files generated by > DO's > Generator.php. > > Why is it not needed and evil? > That message seems to explain it for me. It's very easy to accidentally leave an extra line after ?> in your PHP files. If you have an extra line it causes output when that file is included. This, in turn, breaks calls to header() and session_start(). Alan left it out of the auto-generated classes to stop this from happening. There really is no technical reason to have a ?> at the end of a file. -- Justin Patrin

« previous php.pear.general (#20703) next »