fix test bug in php5.3