Open lkppo opened 9 months ago
Interesting. This looks like the PHP bareword behavior that has been removed in php8.0. I never noticed it in Smarty before. Will have to test first. What smarty version and what php version are you using?
I use PHP 8.0.1 and Smarty 3.1.48.
Hello,
I had difficulty identifying a problem in a template. After reading the documentation I wonder if the behavior is normal or faulty.
$WXO_PRODUCT_CROSS and $WXO_PRODUCT_UP both have the value "".
The following code should not produce HTML output but it does. My error is a missing $ in the first condition.
The resulting code compiled by Smarty is:
instead of
Is it normal for "WXO_PRODUCT_CROSS" to be interpreted as a string instead of causing a compilation error?