Make php5.3 compatible