com php-src: Merge branch 'PHP-7.2' into PHP-7.3: ext/intl/idn/idn.c
| From: | Sara Golemon | Date: | Fri, 16 Aug 2019 16:41:02 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.2' into PHP-7.3: ext/intl/idn/idn.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-107949@lists.php.net to get a copy of this message | ||
Commit: a192499d2a3806bf55aa060539b5ce8580aa5db7
Author: Sara Golemon <pollita@php.net> Fri, 16 Aug 2019 12:41:02 -0400
Parents: 9b9814fa774eb9e4b8c51721324e708e2b1aa30e 725f439778a6397267fbb4e88059d704cccbc7f3
Branches: PHP-7.3 PHP-7.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a192499d2a3806bf55aa060539b5ce8580aa5db7
Log:
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Suppress deprecation warning on IDNA2003 ICU methods
Changed paths:
MM ext/intl/idn/idn.c
Diff:
diff --cc ext/intl/idn/idn.c
index fc83f79,877a27c..5f9a8d1
--- a/ext/intl/idn/idn.c
+++ b/ext/intl/idn/idn.c
@@@ -225,10 -221,12 +225,14 @@@ static void php_intl_idn_to(INTERNAL_FU
RETURN_FALSE;
} else {
UParseError parse_error;
+ UChar converted[MAXPATHLEN];
+ int32_t converted_ret_len;
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 {