|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ameen at tasjeel dot ae
New email:
PHP Version: OS:


 [2011-11-14 15:09 UTC] ameen at tasjeel dot ae
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:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-14 22:55 UTC]
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 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]
-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]
Support for the UTS #46 (via ICU) has been added to PHP 5.4.
 [2011-11-24 22:27 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cataphract
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 05:01:32 2024 UTC