RFC: config-booleanize

messju mohr <[email protected]>
Newsgroups gmane.comp.php.smarty.devel,gmane.comp.php.smarty.general
Message-ID <[email protected]>
Hello,

http://smarty.php.net/manual/en/variable.config.booleanize.php says
about $smarty->config_booleanize:

"If set to true, config file values of on/true/yes and off/false/no
get converted to boolean values automatically. "

I noticed (or better "was pointed to by ubaldo" :) :
in version 2.5.0 and 2.6.0 this is true for
foo = yes

also for
foo = "yes"

but not for
foo = """yes"""


In Smarty-2.6.1 this changed accidently so that """yes""" is also
booleanized.

I consider the current (the one of 2.6.1) behaviour a bug which could
be fixed easily. But while we're at it: Wouldn't it be most intuitive if

foo = "yes"

would'nt be booleanized (to true) and only

foo = yes

would be?


greetings
messju

(sorry for x-posting, I couldn't tell the more appropiate audience for
this)

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.