-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined variables #391
Comments
uwetews
added a commit
that referenced
this issue
Oct 12, 2017
The master branch has been updated to throw a compiler exception for this condition. |
uwetews
added a commit
to smarty-php/smarty-phpunit
that referenced
this issue
Oct 18, 2017
uwetews
added a commit
that referenced
this issue
Oct 18, 2017
wisskid
pushed a commit
that referenced
this issue
Apr 12, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the following smarty template.
It is compiled into the following php template.
When the compiled template is run, it generates two errors:
Notice: Undefined variable: _prefixVariable1
andNotice: Undefined variable: _prefixVariable2
.Note: Obviously, the template is not very useful, since I've tried to make a minimal example to show the issue. But I ran into the issue when using some similar logic in a template that was actually useful.
The text was updated successfully, but these errors were encountered: