|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58509 incorrect internal iconv conversion to ucs-2
Submitted: 2009-01-14 12:08 UTC Modified: 2013-11-11 11:06 UTC
From: soltpain at gmail dot com Assigned:
Status: Duplicate Package: translit (PECL)
PHP Version: Irrelevant OS: FreeBSD 7.1, Windows 2003
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 !
Your email address:
Solve the problem:
34 + 8 = ?
Subscribe to this entry?

 [2009-01-14 12:08 UTC] soltpain at gmail dot com
Inner conversion to ucs-2 routune is not correct on several OS'es, call to php_iconv_string(... 'ucs-2') may be result data in Big Endian or Lower Indian byte order depending on OS, i assume.

Processing functions are working with data in LE byte order.

Reproduce code:
To fix, replace in php_iconv_string calls 'ucs-2' to 'ucs-2le'.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-11 11:06 UTC]
-Status: Open +Status: Duplicate
 [2013-11-11 11:06 UTC]
This is a duplicate of 58159, for which I've just committed a fix.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 21:01:27 2024 UTC