Re[2]: [SMARTY] Possible bug in math plugin?
| From: | Elgi | Date: | Sun, 06 Apr 2003 12:10:30 +0000 |
| Subject: | Re[2]: [SMARTY] Possible bug in math plugin? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9148@lists.php.net to get a copy of this message | ||
Hello Elgi,
and in your fonction, you don't have a operation ! problaly the erreur
is here.
you can make this function for assign a var :
{assign}
--
Cordialement,
Elgi
Le dimanche 6 avril 2003 à 14:05:58, vous écriviez :
E> Hello Alan,
E> this fonction is :
E> {math equation="x+y" x=var_x y=var_y assign=total}
E> see the doc
E> or i have bad see the doc ;)
E> --
E> Cordialement,
E> Elgi
E> Le dimanche 6 avril 2003 à 14:01:46, vous écriviez :
AM>> I've discovered an annoying little bug in the {math} plugin:
AM>> The expression:
AM>> {math equation="long_var" long_var=0 assign="long_var"}
AM>> fails with the following error:
AM>> Warning: Smarty error: math: parameter long not passed as argument in
AM>> x:\path\Smarty\Smarty.class.php on line 1040
AM>> It appears that the expression evaluator cannot cope with long variable
AM>> names (those containing the underscore '_' character)
AM>> Whilst I accept that this may not be a true bug, it is damn irritating at
AM>> times!