Re: [SMARTY-DEV] (fwd) Bug in Smarty Config File Class
| From: | boots | Date: | Fri, 05 Dec 2003 21:29:08 +0000 |
| Subject: | Re: [SMARTY-DEV] (fwd) Bug in Smarty Config File Class | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1951@lists.php.net to get a copy of this message | ||
> I'm writing to report a small, though annoying bug in the Config_File
> class that ships with Smarty (I am using version 2.6.0. I attempted
> to define strings in my config file with values set
> to "True", "False", "Yes", and "No". The parser is
> interpretting
> these as boolean values and eliminating my string literals.
This is a documented feature. You can turn off this behaviour via
Smarty using $smarty->config_booleanize = false or from the config
class using $config->booleanize = false.
HTH,
xo boots
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/