Re: short_open_tag

From: Date: Wed, 26 Mar 2008 20:39:40 +0000
Subject: Re: short_open_tag
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-36573@lists.php.net to get a copy of this message
On Wed, Mar 26, 2008 at 9:25 PM, Stanislav Malyshev <stas@zend.com> wrote: > I will repeat it as many times as necessary: > 1. This situation can happen only if you have written very buggy > template code - there exists no such code right now and one has to be > rather sloppy to create such code. Use quality libraries :) At least as > template engine. So the template is responsible for ini_set("short_open_tags", false) ? If I include your high quality template library it will do ini_set(.. true) at the top, before parsing the templates, and then ini_set(..false) at the bottom? > 2. This situation is very rare use case for PHP anyway, since most > templates in PHP aren't XML. So what if most templates in PHP aren't XML files? What does that have to do with anything? If I include your template library and then decied to bump out RSS.. your short tags enabling infected my php generated xml file with a parse error - even if I explicitly had put short_open_tags = off in my .htaccess > 3. This situation is very easy to prevent and very easy to recognize if > not prevented. No? Random syntax errors on <?xml - even if I have short_open_tags disabled in my php.ini, virtualhost setting and .htaccess... -Hannes

« previous php.internals (#36573) next »