amazon-s3-php-class
amazon-s3-php-class copied to clipboard
Undefined constant CURL_SSLVERSION_TLSv1
CURL_SSLVERSION_TLSv1
constant is not defined in PHP 5.3.29.
You should define it if not available.
if (!defined('CURL_SSLVERSION_TLSv1')) {
define('CURL_SSLVERSION_TLSv1', 1);
}
This also causes an issue with PHP 5.4 and HHVM
CURL_SSLVERSION_TLSv1 is not defined until PHP 5.5. This really should be fixed since it is bug for anything < PHP 5.5 (lib requirement is PHP 5.2+).