Req #74276 [NEW]: idn_to_ascii() empty
From: dsk at topaz dot damianek dot be
Operating system: FreeBSD 11
PHP version: 5.6.30
Package: *Unicode Issues
Bug Type: Feature/Change Request
Bug description:idn_to_ascii() empty
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=74276&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74276&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74276&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74276&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74276&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74276&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74276&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74276&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74276&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74276&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74276&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74276&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74276&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74276&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74276&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74276&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74276&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74276&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74276&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74276&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74276&r=mysqlcfg
Thread (1 message)
- dsk at topaz dot damianek dot be