Doc #51539 [NEW]: Undocumented idn_to_ascii behaviour and availability
| From: | tokul at users dot sourceforge dot net | Date: | Mon, 12 Apr 2010 09:12:14 +0000 |
| Subject: | Doc #51539 [NEW]: Undocumented idn_to_ascii behaviour and availability | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4193@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Undocumented idn_to_ascii behaviour and availability
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 bug report at http://bugs.php.net/bug.php?id=51539&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51539&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51539&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51539&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51539&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51539&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51539&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51539&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51539&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51539&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51539&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51539&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51539&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51539&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51539&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51539&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51539&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51539&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51539&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51539&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51539&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51539&r=mysqlcfg