Skip to content
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

Template rendering unexpected result since Smarty 3.1.31 #500

Closed
noam-k opened this issue Oct 19, 2018 · 1 comment
Closed

Template rendering unexpected result since Smarty 3.1.31 #500

noam-k opened this issue Oct 19, 2018 · 1 comment

Comments

@noam-k
Copy link

noam-k commented Oct 19, 2018

I have some PHP code that is being tested with PHPUnit. One test in particular fails once I use Smarty version of 3.1.31 (or higher). The failing part is attached.

smarty-version-test.zip

When 'Smarty/Smarty.class.php' (in the PHP require statement) points to a smarty of version 3.1.30, the (expected) result is as follows:
nkritenberg@d-2-174:~$ php smarty-version-test.php
begin-a#b#c#d#end

But when 'Smarty/Smarty.class.php' points to a smarty of version 3.1.31 or higher, the separator is being ignored:
nkritenberg@d-2-174:~$ php smarty-version-test.php
begin-abcdend.

I tried with PHP 5 and PHP 7.

uwetews added a commit that referenced this issue Oct 30, 2018
…eplace by

   outer level block with same name in same child template #500
@uwetews
Copy link
Contributor

uwetews commented Oct 30, 2018

This bug is now fixed in the master branch and will later be included in 3.1.34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants