Edit report at https://bugs.php.net/bug.php?id=60296&edit=1
ID: 60296 Updated by: paj...@php.net Reported by: ameen at tasjeel dot ae Summary: Unable to convert domains valid under IDNA2008 Specification Status: Open Type: Bug Package: idn Operating System: Fedora PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [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