Doc #51539 [Opn->Fbk]: Undocumented idn_to_ascii behaviour and availability

From: Date: Tue, 10 Aug 2010 05:43:47 +0000
Subject: Doc #51539 [Opn->Fbk]: Undocumented idn_to_ascii behaviour and availability
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4826@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51539&edit=1 ID: 51539 Updated by: philip@php.net Reported by: tokul at users dot sourceforge dot net Summary: Undocumented idn_to_ascii behaviour and availability -Status: Open +Status: Feedback Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N New Comment: Because intl is bundled with PHP as of 5.3.0, I think it's fairly clear. How would you suggest it be clearer? Keeping in mind that this format is used throughout the manual. As for return value, I agree, it should be updated. Previous Comments: ------------------------------------------------------------------------ [2010-04-12 11:12:14] tokul at users dot sourceforge dot net Description: ------------ PHP intl extension manual (http://www.php.net/manual/en/ref.intl.idn.php) does not say that idn_to_utf8() and idn_to_ascii() functions are available in PECL IDN extension on older PHP versions. "PHP 5 >= 5.3.0, PECL intl >= 1.0.2" is unclear. Is it PHP 5.3.0+ AND intl 1.0.2+ extension or PHP 5.3.0+ OR intl 1.0.2+ extension. Documentation states that function returns string, but idn_to_ascii() can also return boolean false on failure. (Tested on PHP 5.2.9 with intl 1.1.1 extension) Test script: --------------- var_dump(idn_to_ascii("\xa0.org")); Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51539&edit=1

« previous php.doc.bugs (#4826) next »