Bug #75609 [Opn->Nab]: idn_to_utf8() default of INTL_IDNA_VARIANT_2003 gives deprecation warning

From: Date: Fri, 01 Dec 2017 12:34:23 +0000
Subject: Bug #75609 [Opn->Nab]: idn_to_utf8() default of INTL_IDNA_VARIANT_2003 gives deprecation warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212859@lists.php.net to get a copy of this message
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)

« previous php.bugs (#212859) next »