Re: [SMARTY] Possible bug in math plugin?

From: Date: Sun, 06 Apr 2003 12:12:30 +0000
Subject: Re: [SMARTY] Possible bug in math plugin?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9149@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:45829632929.20030406140558@tiscali.fr... > Hello Alan, > > this fonction is : > {math equation="x+y" x=var_x y=var_y assign=total} > see the doc > or i have bad see the doc ;) > > -- > Cordialement, > Elgi > > 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 (#9149) next »