|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76658 Add support for new IDNA flags
Submitted: 2018-07-23 23:13 UTC Modified: 2021-11-11 11:18 UTC
Avg. Score:3.7 ± 0.5
Reproduced:2 of 3 (66.7%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: smokey101stair at gmail dot com Assigned:
Status: Open Package: I18N and L10N related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-07-23 23:13 UTC] smokey101stair at gmail dot com
The UTS #46 ToUnicode [1] and ToASCII [2] steps currently accept a series of boolean flags. PHP currently only exposes ways of controlling the CheckBidi, CheckJoiners, and Transitional_Processing flags through the use of the IDNA_CHECK_BIDI, IDNA_CHECK_CONTEXTJ, and IDNA_NONTRANSITIONAL_TO_(ASCII|UNICODE) constants.

I am proposing that PHP add support for controlling the CheckHyphens and VerifyDnsLength flags. The CheckHyphens flag applies to both idn_to_ascii() and idn_to_utf8(), while the VerifyDnsLength flag only pertains to idn_to_ascii(). 

This would add two new constants:


Bug 72506 and Bug 71350 seem like possible prerequisites to supporting the VerifyDnsLength flag.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-11-11 11:18 UTC]
-Package: intl +Package: I18N and L10N related
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Mar 04 05:01:30 2024 UTC