According to the “Deprecate and remove INTL_IDNA_VARIANT_2003” RFC[1],
we change the default of the $variant parameter of `idn_to_ascii()` and
`idn_to_utf8()` from `INTL_IDNA_VARIANT_2003` to
`INTL_IDNA_VARIANT_UTS46`.
[1] <https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003>
- Intl:
. Lifted requirements to ICU ≥ 50.1. (cmb)
+ . Changed default of $variant parameter of idn_to_ascii() and idn_to_utf8().
+ (cmb)
- Standard:
. Fixed bug #74764 (Bindto IPv6 works with file_get_contents but fails with
1. Backward Incompatible Changes
========================================
+- Intl:
+ . The default parameter value of idn_to_ascii() and idn_to_utf8() is now
+ INTL_IDNA_VARIANT_UTS46 instead of the deprecated INTL_IDNA_VARIANT_2003.
+
========================================
2. New Features
========================================
{
zend_string *domain;
zend_long option = 0,
- variant = INTL_IDN_VARIANT_2003;
+ variant = INTL_IDN_VARIANT_UTS46;
zval *idna_info = NULL;
intl_error_reset(NULL);
?>
--EXPECTF--
-Deprecated: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in %s on line %d
xn--tst-qla.de
-
-Deprecated: idn_to_utf8(): INTL_IDNA_VARIANT_2003 is deprecated in %s on line %d
-t%C3%A4st.de
\ No newline at end of file
+t%C3%A4st.de