summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/intl/idn/idn.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/intl/idn/idn.c b/ext/intl/idn/idn.c
index fc83f7921f..5f9a8d11cc 100644
--- a/ext/intl/idn/idn.c
+++ b/ext/intl/idn/idn.c
@@ -229,11 +229,18 @@ static void php_intl_idn_to(INTERNAL_FUNCTION_PARAMETERS,
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 {
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)) {