Skip to content

Commit 8c8a38a

Browse files
MaxKellermanndevnexen
authored andcommitted
ext/curl: suppress -Wdeprecated-declarations
Closes GH-10531.
1 parent 71ddede commit 8c8a38a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ PHP NEWS
1313
. Fixed bug GH-10168: use-after-free when utilizing assigned object freed
1414
during assignment. (nielsdos)
1515

16+
- Curl:
17+
. Fixed deprecation warning at compile time. (Max Kellermann)
18+
1619
- Date:
1720
. Fix GH-10447 ('p' format specifier does not yield 'Z' for 00:00). (Derick)
1821

ext/curl/interface.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
#include "curl_private.h"
6363
#include "curl_arginfo.h"
6464

65+
#ifdef __GNUC__
66+
/* don't complain about deprecated CURLOPT_* we're exposing to PHP; we
67+
need to keep using those to avoid breaking PHP API compatibiltiy */
68+
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
69+
#endif
70+
6571
#ifdef PHP_CURL_NEED_OPENSSL_TSL /* {{{ */
6672
static MUTEX_T *php_curl_openssl_tsl = NULL;
6773

0 commit comments

Comments
 (0)