fix test bug for php5.3