Re: [SMARTY-DEV] problem with math funciton in 2.6.4 stable

From: Date: Sat, 11 Sep 2004 16:03:16 +0000
Subject: Re: [SMARTY-DEV] problem with math funciton in 2.6.4 stable
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2564@lists.php.net to get a copy of this message
This was a known bug in 2.6.4 and was fixed for 2.6.5-dev (that which is in cvs now) -bok On Sat, 11 Sep 2004 17:39:44 +0200, emailtotom@gmx.de <emailtotom@gmx.de> wrote: > Hi, > > I had a problem with a math function: (2.6.4 stable) > > var session_time = {$sys_lifetime*1000}; > var session_time2 = {$sys_lifetime}; > > gets compiled to: > > var session_time = ; > var session_time2 = <?php echo > ((is_array($_tmp=$this->_tpl_vars['sys_lifetime'])) ? > $this->_run_mod_handler('modify_quotehtml', true, $_tmp) : > modify_quotehtml($_tmp)); ?> > > Using the latest dev-version from cvs it works again as in 2.6.3 stable: > > var session_time = <?php echo > ((is_array($_tmp=$this->_tpl_vars['sys_lifetime']*1000)) ? > $this->_run_mod_handler('modify_quotehtml', true, $_tmp) : > modify_quotehtml($_tmp)); ?> > ; > var session_time2 = <?php echo > ((is_array($_tmp=$this->_tpl_vars['sys_lifetime'])) ? > $this->_run_mod_handler('modify_quotehtml', true, $_tmp) : > modify_quotehtml($_tmp)); ?> > ; > > bye > tom > > -- > Smarty Development Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Xnyo - http://xnyo.odynia.org/

« previous php.smarty.dev (#2564) next »