up to Smarty 3.1.16