RFC: config-booleanize
| From: | messju mohr | Date: | Wed, 11 Feb 2004 19:41:16 +0000 |
| Subject: | RFC: config-booleanize | ||
| Groups: | php.smarty.dev php.smarty.general | ||
| Request: | Send a blank email to php-smarty-dev+get-2102@lists.php.net to get a copy of this message | ||
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)