Possible bug in math plugin?
| From: | Alan McFarlane | Date: | Sun, 06 Apr 2003 12:01:46 +0000 |
| Subject: | Possible bug in math plugin? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9145@lists.php.net to get a copy of this message | ||
I've discovered an annoying little bug in the {math} plugin:
The expression:
{math equation="long_var" long_var=0 assign="long_var"}
fails with the following error:
Warning: Smarty error: math: parameter long not passed as argument in
x:\path\Smarty\Smarty.class.php on line 1040
It appears that the expression evaluator cannot cope with long variable
names (those containing the underscore '_' character)
Whilst I accept that this may not be a true bug, it is damn irritating at
times!