com php-src: Suppress deprecation warning on IDNA2003 ICU methods: ext/intl/idn/idn.c

From: Date: Fri, 16 Aug 2019 16:40:20 +0000
Subject: com php-src: Suppress deprecation warning on IDNA2003 ICU methods: ext/intl/idn/idn.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-107948@lists.php.net to get a copy of this message
Commit: 725f439778a6397267fbb4e88059d704cccbc7f3 Author: Sara Golemon <pollita@php.net> Fri, 16 Aug 2019 12:40:20 -0400 Parents: fcabe7e5e44067319f9c4123d71a7cea6a823af4 Branches: PHP-7.2 PHP-7.3 PHP-7.4 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=725f439778a6397267fbb4e88059d704cccbc7f3 Log: Suppress deprecation warning on IDNA2003 ICU methods Changed paths: M ext/intl/idn/idn.c Diff: diff --git a/ext/intl/idn/idn.c b/ext/intl/idn/idn.c index adfa81f..877a27c 100644 --- a/ext/intl/idn/idn.c +++ b/ext/intl/idn/idn.c @@ -223,11 +223,18 @@ static void php_intl_idn_to(INTERNAL_FUNCTION_PARAMETERS, UParseError parse_error; status = U_ZERO_ERROR; +#if (ZEND_GCC_VERSION >= 4002) && !defined(__clang__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif if (mode == INTL_IDN_TO_ASCII) { converted_ret_len = uidna_IDNToASCII(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status); } else { converted_ret_len = uidna_IDNToUnicode(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status); } +#if (ZEND_GCC_VERSION >= 4002) && !defined(__clang__) +# pragma GCC diagnostic pop +#endif efree(ustring); if (U_FAILURE(status)) {

« previous php.cvs (#107948) next »