|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47166 unicode_is_decodable feature
Submitted: 2009-01-20 11:47 UTC Modified: 2009-01-21 11:17 UTC
From: lunter at interia dot pl Assigned:
Status: Wont fix Package: Unicode Engine related
PHP Version: 6CVS-2009-01-20 (snap) OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
45 - 2 = ?
Subscribe to this entry?

 [2009-01-20 11:47 UTC] lunter at interia dot pl
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:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-21 11:17 UTC]
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.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Nov 29 15:05:53 2022 UTC