php 5.5 compatible smarty