update for php 5.4 and Smarty 3.1.21