Re: Re[2]: [SMARTY] Possible bug in math plugin?

From: Date: Sun, 06 Apr 2003 12:21:51 +0000
Subject: Re: Re[2]: [SMARTY] Possible bug in math plugin?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9150@lists.php.net to get a copy of this message
I thought the idea of posting code was to use the smallest snippet of code that would reproduce the error faithfully. Okay, try the expression: {math equation="long_var + 1" long_var=0 assign="long_var"} And you ~still~ get the same result: Warning: Smarty error: math: parameter long not passed as argument in x:\path\Smarty\Smarty.class.php on line 1040 -- "Elgi" <elgi@tiscali.fr> wrote in message news:<97829905370.20030406141030@tiscali.fr>... > 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! > >

« previous php.smarty.general (#9150) next »