feulf / raintpl3

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

fixed similar key var overlapped #176

Closed tyjak closed 3 years ago

tyjak commented 9 years ago

If you have {if="$test.key_name && $test.key_namenear"} then the compiled version : <?php if( $test["key_name"] && $test["key_name"]near ){ ?> it should be <?php if( $test["key_name"] && $test["key_namenear"]){ ?>

keskad commented 9 years ago

What a bullshit, strpos is not deprecated and will not be :smile: strpos is a lower operation on string than preg_match, it cannot be simply dropped.

keskad commented 9 years ago

I could also mention that this bug is possibly fixed in fourth version (a RainTPL3 fork). If you want you could try it with RainTPL4 - https://github.com/Panthera-Framework/raintpl4 and fill a issue if it happens too

tyjak commented 3 years ago

stalled...