Update template library for php5.5