[lib] fix #86, smarty up to 2.6.28