#47166 [Opn->WFx]: unicode_is_decodable feature
| From: | johannes@php.net | Date: | Wed, 21 Jan 2009 11:17:09 +0000 |
| Subject: | #47166 [Opn->WFx]: unicode_is_decodable feature | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133101@lists.php.net to get a copy of this message | ||
ID: 47166
Updated by: johannes@php.net
Reported By: lunter at interia dot pl
-Status: Open
+Status: Wont fix
Bug Type: Unicode Engine related
Operating System: all
PHP Version: 6CVS-2009-01-20 (snap)
New Comment:
There's no good way to do a simple checking, in fact we'd have to
convert it internally and then throw the result away.
Previous Comments:
------------------------------------------------------------------------
[2009-01-20 11:47:49] lunter at interia dot pl
Description:
------------
bool unicode_is_decodable ( string $input , string $encoding )
Return true when convert a binary string encoded in encoding to a
unicode string is possible witout errors.
To prevent emits a E_WARNING level error if a converter cannot be
created for the desired encoding by unicode_decode .
Reproduce code:
---------------
n/a
Expected result:
----------------
n/a
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47166&edit=1