|  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 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 !
Your email address:
Solve the problem:
3 + 39 = ?
Subscribe to this entry?

 [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: Thu Jun 20 10:01:31 2024 UTC