-
Notifications
You must be signed in to change notification settings - Fork 715
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
{include} function breaks output when enable cache #300
Comments
This bug is fixed now in the master branch |
Thanks for fix this issue. In my project, we found another cases which break output. An issue occurs in Smarty-dev/34 + PHP7. Programreproduce.php :
output.tpl :
sample_script.tpl (case 1 : '<? ') :
sample_html_no_quotes_attr.tpl (case 2 : '%>') :
Resultexpect:
actual:
Same as last, if we don't use {include} function or disable smarty cache, it works correctly. Thanks. |
…did contain PHP short tags in text but no other nocache code #300
This bug is now fixed in the master branch |
Thanks for fixing issues! |
Hello,
I have a problem with {include} function when enable cache. A problem has occurred since Smarty-3.1.29+.
Here is minimal reproduce code:
reproduce.php :
xml_output.tpl :
xml_head.tpl :
I expect output of reproduce.php :
But since Smarty-3.1.29+ :
If reproduce.php changes
to
or disable smarty cache, it works correctly.
But i must use {include} function with smarty cache for my projects.
Thanks.
The text was updated successfully, but these errors were encountered: