ext/curl: suppress -Wdeprecated-declarations

Closes GH-10531.
This commit is contained in:
Max Kellermann 2023-02-07 12:16:03 +01:00 committed by David Carlier
parent 71ddede565
commit 8c8a38a75c
2 changed files with 9 additions and 0 deletions

3
NEWS
View File

@ -13,6 +13,9 @@ PHP NEWS
. Fixed bug GH-10168: use-after-free when utilizing assigned object freed
during assignment. (nielsdos)
- Curl:
. Fixed deprecation warning at compile time. (Max Kellermann)
- Date:
. Fix GH-10447 ('p' format specifier does not yield 'Z' for 00:00). (Derick)

View File

@ -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;