fix test failed in PHP 5.3