amazon-s3-php-class
amazon-s3-php-class copied to clipboard
Only set the FOLLOWLOCATION curl opt if we are not in safe mode
This small patch allows the S3 library to be used in safe mode. Without this patch, it cannot be used in safe mode because the FOLLOWLOCATION curl opt is only allowed when not in safe mode.
Safe mode isn't the only situation where setting FOLLOWLOCATION will produce a warning. A better solution is provided here: https://github.com/tpyo/amazon-s3-php-class/pull/21
Hope this pull request gets merged soon, just hit the same issue.