Fixed #Get latest version can failed on certain php version