Re: [SMARTY] Possible bug in math plugin?

From: Date: Sun, 06 Apr 2003 12:32:31 +0000
Subject: Re: [SMARTY] Possible bug in math plugin?
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9152@lists.php.net to get a copy of this message
Thank you... "Messju Mohr" <messju@lammfellpuschen.de> wrote in message news:20030406122712.GM21673@pharao.lammfellpuschen.de... > yes, the variable-names that contained a "_" where not matched. > this is fixed in cvs. > > greetings > messju > > On Sun, Apr 06, 2003 at 01:12:30PM +0100, Alan McFarlane wrote: > > 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 > > > AM> 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! > > > > > > > > > > > > > > -- > > Smarty General Mailing List (http://smarty.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > Deadlock: Einsperren des Admins im Serverraum. > Manfred Worm Schäfer

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