Bug #75609 [NEW]: idn_to_utf8() default of INTL_IDNA_VARIANT_2003 gives deprecation warning
| From: | hanno at hboeck dot de | Date: | Fri, 01 Dec 2017 12:26:31 +0000 |
| Subject: | Bug #75609 [NEW]: idn_to_utf8() default of INTL_IDNA_VARIANT_2003 gives deprecation warning | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-212858@lists.php.net to get a copy of this message | ||
From: hanno at hboeck dot de
Operating system: Linux
PHP version: 7.2.0
Package: I18N and L10N related
Bug Type: Bug
Bug description:idn_to_utf8() default of INTL_IDNA_VARIANT_2003 gives deprecation warning
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 bug report at https://bugs.php.net/bug.php?id=75609&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75609&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75609&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75609&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75609&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75609&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75609&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75609&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75609&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75609&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75609&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75609&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75609&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75609&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75609&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75609&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75609&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75609&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75609&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75609&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75609&r=mysqlcfg