php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60296 Unable to convert domains valid under IDNA2008 Specification
Submitted: 2011-11-14 15:09 UTC Modified: 2011-11-24 22:27 UTC
From: ameen at tasjeel dot ae Assigned: cataphract (profile)
Status: Closed Package: idn (PECL)
PHP Version: 5.3.6-1 OS: Fedora
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ameen at tasjeel dot ae
New email:
PHP Version: OS:

 

 [2011-11-14 15:09 UTC] ameen at tasjeel dot ae
Description:
------------
The idn implementation in php does not seem to fully support BIDI rules as defined in IDNA2008 specification which are the IETF RFCs 5890 - 5894. This has been noticed because it does not seem to support converting right-to-left script labels ending with a number, and this was addressed by these RFC's.

With the function below there is no output.











Test script:
---------------
echo idn_to_ascii("اختبار7.امارات"); 

Expected result:
----------------
xn--7-ymcadjxy.xn--mgbaam7a8h


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-14 22:55 UTC] pajoye@php.net
I suppose you use intl's idn_to_ascii right?

In this case, this is most likely a bug in the ICU library, can you please try to 
report a bug at the icu-project.org directly. PHP only wraps ICU functions of the 
ICU library and data (unicode data). As it is supposed to implement IDNA2008 in 
its latest release, it should work.

btw, which ICU version do you use?
 [2011-11-14 22:55 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2011-11-15 17:28 UTC] ameen at tasjeel dot ae
The version for libicu is 4.4.2-2
 [2011-11-15 17:28 UTC] ameen at tasjeel dot ae
-Status: Feedback +Status: Open -PHP Version: 5.3.8 +PHP Version: 5.3.6-1
 [2011-11-24 22:27 UTC] cataphract@php.net
Support for the UTS #46 (via ICU) has been added to PHP 5.4.
 [2011-11-24 22:27 UTC] cataphract@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cataphract
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC