support php5.2