feulf / raintpl3

The easiest Template Engine for PHP
https://feulf.github.io/raintpl
258 stars 57 forks source link

Round bracket in expression bug #145

Closed feulf closed 8 years ago

feulf commented 10 years ago
    {$var1=is_null(1)} 
    {$var2=(1 ^ 3)} 
    {$var3=(1 != 3)} 
    {$var4=(1 == 4)} 

Actual result :

    <?php $var1=$this->var['var1']=is_null(1);?> 
    <?php $var2=$this->var['var2']=(1 ^ 3);?> 
    <?php echo $var3=(1 != 3);?> 
    <?php echo $var4=(1 == 4);?> 

Expected result :

    <?php $var1=$this->var['var1']=is_null(1);?> 
    <?php $var2=$this->var['var2']=(1 ^ 3);?> 
    <?php $var3=$this->var['var3']=(1 != 3);?> 
    <?php $var4=$this->var['var4']=(1 == 4);?> 
keskad commented 9 years ago

Hmm... why you have 3 variables in input and 4 in output? Is it valid?

feulf commented 9 years ago

Fixed, thanks.