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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 + 29 = ?
Subscribe to this entry?

 
 [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

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: Fri Apr 19 23:01:28 2024 UTC