ID: 48220 Updated by: bj...@php.net Reported By: fh-phpbug at fholzhauer dot de -Status: Open +Status: Bogus Bug Type: I18N and L10N related Operating System: Ubuntu PHP Version: 5.3.0RC2 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Unfortunately the docs are about the pecl/idn extension, not the PHP5.3 ext/intl extension (which includes that function). Previous Comments: ------------------------------------------------------------------------ [2009-05-10 12:08:42] fh-phpbug at fholzhauer dot de Description: ------------ The optional parameter $errorcode in idn_to_ascii() should return the IDNA error code, but is NULL after an error. See the example in the PHP documentation (http://de.php.net/manual/en/function.idn-to-ascii.php) for a description of the expected behaviour. http://pastebin.com/m55d27e3c provides a PHPT testcase. Reproduce code: --------------- <?php //http://de.php.net/manual/en/function.idn-to-ascii.php -> example idn_to_ascii("xn--".chr(0xC3).chr(0xA4),$errorcode); var_dump($errorcode); ?> Expected result: ---------------- int(8) Actual result: -------------- NULL ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48220&edit=1