Re: short_open_tag

From: Date: Wed, 26 Mar 2008 21:54:33 +0000
Subject: Re: short_open_tag
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-36584@lists.php.net to get a copy of this message
Hello Hannes, Wednesday, March 26, 2008, 9:41:31 PM, you wrote: > On Wed, Mar 26, 2008 at 9:39 PM, Hannes Magnusson > <hannes.magnusson@gmail.com> wrote: >> 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? > Ouh. No. Wait. They can't do that since I may have had short_open_tags > already enabled... > They'll have to $old = ini_set("short_open_tags", false); include > "templates"; ini_set("short_open_tags", $old); There you go. It's not that easy. And that's the whole point here. We are making it yet again way more complex. I thought we wanted to reduce the amount of INI settings. Now we even open them? Marcus

« previous php.internals (#36584) next »