Re: [SMARTY-DEV] case-insensitive plugins
| From: | messju mohr | Date: | Mon, 28 Apr 2003 18:00:20 +0000 |
| Subject: | Re: [SMARTY-DEV] case-insensitive plugins | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1283@lists.php.net to get a copy of this message | ||
On Mon, Apr 28, 2003 at 01:41:21PM -0400, Andrei Zmievski wrote:
> On Sun, 27 Apr 2003, messju mohr wrote:
> > hello smarty-dev,
> >
> > i just broke bc to certain smarty-installations recently. :)
> >
> > tag-names are case-insensitive now.
>
> Grrrr!
>
> > this means:
> >
[...stuff...]
> >
> >
> >
> > please tell me, if this change affects you, and if you have any
> > problems with it.
>
> Why was this change made in the first place? Was it so broken that it
> absolutely had to be done? Or was it a case of creeping featurism where
> Smarty has to acquire more and more things upon the slightest request?
it is not a feature. it was done, to avoid trouble in the long run.
the names for auto-loaded plugins' tags are mapped 1-to-1
php-function-names (and that's good), but php-function-names are
case-insensitive. so using {Foo} and {foo} in the same template would
both acquire smarty_function_foo() as it's implementation. this would
call for trouble in two different plugin-files.
it wasn't done in a rush. it was carefully decided and now committed.
no bloat and no features where intended here.
greetings
messju
> -Andrei
> http://www.gravitonic.com/