add php5.3 support