diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 4fc0415e78757..36300dacfcfba 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -62,6 +62,12 @@ #include "curl_private.h" #include "curl_arginfo.h" +#ifdef __GNUC__ +/* don't complain about deprecated CURLOPT_* we're exposing to PHP; we + need to keep using those to avoid breaking PHP API compatibiltiy */ +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #ifdef PHP_CURL_NEED_OPENSSL_TSL /* {{{ */ static MUTEX_T *php_curl_openssl_tsl = NULL;