Fix curl warning caused by php version