In this example, the $var assignment inside the function persists outside of the function: ```` {function name=test} {$var="b"} {/function} {$var="a"} {test} {$var} ```` So Smarty 4 would output "a" as you'd expect, but Smarty v5.0.0-rc3 outputs "b".
In this example, the $var assignment inside the function persists outside of the function:
So Smarty 4 would output "a" as you'd expect, but Smarty v5.0.0-rc3 outputs "b".