#48220 [Opn->Bgs]: idn_to_ascii: $errorcode is NULL
| From: | bjori@php.net | Date: | Sun, 10 May 2009 13:15:17 +0000 |
| Subject: | #48220 [Opn->Bgs]: idn_to_ascii: $errorcode is NULL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137102@lists.php.net to get a copy of this message | ||
ID: 48220
Updated by: bjori@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