problem with math funciton in 2.6.4 stable

From: Date: Sat, 11 Sep 2004 15:39:44 +0000
Subject: problem with math funciton in 2.6.4 stable
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2563@lists.php.net to get a copy of this message
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

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