The CURLOPT_FOLLOWLOCATION doesn't work with PHP safemode and openbasedir turned on. I will generate an error. I've attached a patch to check for safemode and openbasedir, and disable FOLLOWLOCATION when one of those is enabled. So it won't give an error anymore.