Bug #60296 [Opn->Fbk]: Unable to convert domains valid under IDNA2008 Specification
| From: | pajoye@php.net | Date: | Mon, 14 Nov 2011 22:55:43 +0000 |
| Subject: | Bug #60296 [Opn->Fbk]: Unable to convert domains valid under IDNA2008 Specification | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165137@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60296&edit=1
ID: 60296
Updated by: pajoye@php.net
Reported by: ameen at tasjeel dot ae
Summary: Unable to convert domains valid under IDNA2008
Specification
-Status: Open
+Status: Feedback
Type: Bug
Package: idn
Operating System: Fedora
PHP Version: 5.3.8
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2011-11-14 22:55:34] 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 15:09:45] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60296&edit=1