smarty-php / smarty-php/smarty
[BUG] Smarty 5 error with compiled template.
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2.3k
- Forks
- 709
- PR merge metrics
- No merged PRs in 30d
Description
When we create simple document with condition like this:
{if !empty($test.test=="1")}test{/if}
In smarty version 4.5.4 template is compiled to this(which works):
However in smarty version 5.4.3 template is compiled to this:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the minimal {if !empty($test.test=="1")}test{/if} template with Smarty 4.5.4 and 5.4.3, then compare the compiled output shown in the issue. Trace the compilation path for this condition and consider the issue complete when the Smarty 5 output handles the expression consistently with the working Smarty 4 behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100