-
Notifications
You must be signed in to change notification settings - Fork 709
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
Fetch recursion #91
Comments
Its a bug. I will try to fix this asap |
Same as here #70. Looking at your code the following should have even better performance as the original one
No need to recreate $newTpl in the loop. |
Thanks for looking into this :) The example code i provided is massively slimmed down to demonstrate the bug - but yes i appreciate you do not need to re-create the same template each time. |
Merge release-2.0.10 into master branch
Calling fetch() on the $tpl argument passed to a function plugin is causing recursion after updating from 3.1.21 to 3.1.27
Previously this would run happily but since the update it is causing a seg fault due to recursion!
The call to fetch now appears to re-render the template already defined on $tpl resulting in the original template containing the function call to {messages} being re-executed and hence recursion.
I've not delved too far into the Smarty code but copy/pasting bits from the fetch function into this does get things working without recursion -
The text was updated successfully, but these errors were encountered: