|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-03-20 07:55 UTC] dsk at topaz dot damianek dot be
Description: ------------ FreeBSD port has ICU compilled '--with-data-packaging=archive' option - intl extension accept this durning compillation. In mine environment php works as fpm with chroot, like /home/username/domainname.tld/ where is public_html as documentroot for webserver. Inside chroot is also roundcube webmail. Roundcube uses idn_to_ascii() function to determine $username and $domain_part - but idn_to_ascii() don't work, eg. idn_to_ascii($username) is empty, idn_to_ascii($domain_part) also is empty without any info/error/message. From roundcube team: "Looks like a PHP level issue. From intl extension we use idn_to_ascii() function. I guess it returns empty string instead of a properly converted string or sth." Test script: --------------- From roundcube file 'program/include/rcmail.php' // Here we need IDNA ASCII // Only rcube_contacts class is using domain names in Unicode $host = rcube_utils::idn_to_ascii($host); $username = rcube_utils::idn_to_ascii($username); Expected result: ---------------- If idn_to_ascii() is empty, show or save in errorlog some E_NOTICE or similar. Patchesandroid11-qpr1-c-release.json (last revision 2021-07-18 13:44 UTC by damianss640 at gmail dot com)Hello (last revision 2017-03-20 13:26 UTC by test123 at gmail dot com) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 19:00:01 2025 UTC |
Hello also for php7.1.13 I try to use: echo idn_to_ascii('täst.de'); and it's work and show: xn--tst-qla.de but, when I try to use: echo idn_to_ascii('בדיקה123.co.il'); it's show empty blank page, no error and no value Regards