CURLOPT_FOLLOWLOCATION fonksiyonu safe mod açıkken veya open_basedir açıkken çalışmaz.

php.ini dosyasından kapatırsan sorun çözülür