problem with math funciton in 2.6.4 stable

[email protected]
Newsgroups php.smarty.dev
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.