Bug #75609 [Opn->Nab]: idn_to_utf8() default of INTL_IDNA_VARIANT_2003 gives deprecation warning
Edit report at https://bugs.php.net/bug.php?id=75609&edit=1
ID: 75609
Updated by: kelunik@php.net
Reported by: hanno at hboeck dot de
Summary: idn_to_utf8() default of INTL_IDNA_VARIANT_2003
gives deprecation warning
-Status: Open
+Status: Not a bug
Type: Bug
Package: I18N and L10N related
Operating System: Linux
PHP Version: 7.2.0
Block user comment: N
Private report: N
New Comment:
This is not a bug, but intended, see https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003
This makes it explicit for users of the old variant that the behavior of their code will change in a
future version.
Previous Comments:
------------------------------------------------------------------------
[2017-12-01 12:26:28] hanno at hboeck dot de
Description:
------------
The variant parameter of idn_to_utf8() defaults to INTL_IDNA_VARIANT_2003. This gives a deprecation
warning in PHP 7.2. Example:
php7.2 -ddisplay_errors=on -r 'error_reporting(E_DEPRECATED);idn_to_utf8("x");'
Deprecated: idn_to_utf8(): INTL_IDNA_VARIANT_2003 is deprecated in Command line code on line 1
If INTL_IDNA_VARIANT_2003 is considered deprecated it shouldn't be the default.
Test script:
---------------
error_reporting(E_DEPRECATED);
idn_to_utf8("x");
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75609&edit=1
Thread (3 messages)