update for php5.3