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: 2021-11-11 11:18 UTC
Votes:3
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-11-11 11:18 UTC] nikic@php.net
-Package: intl +Package: I18N and L10N related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC