Make smarty_purge PHP 5.3 compatible (#240)