php.net |  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: -
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: smokey101stair at gmail dot com Assigned:
Status: Open Package: intl (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: smokey101stair at gmail dot com
New email:
PHP Version: OS:

 

 [2018-07-23 23:13 UTC] smokey101stair at gmail dot com
Description:
------------
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:

IDNA_CHECK_HYPHENS
IDNA_VERIFY_DNS_LENGTH

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

[1] https://www.unicode.org/reports/tr46/#ToUnicode
[2] https://www.unicode.org/reports/tr46/#ToASCII


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 19 16:03:36 2021 UTC