php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: soltpain at gmail dot com
New email:
PHP Version: OS:

 

 [2009-01-14 12:08 UTC] soltpain at gmail dot com
Description:
------------
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'.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-11 11:06 UTC] derick@php.net
-Status: Open +Status: Duplicate
 [2013-11-11 11:06 UTC] derick@php.net
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: Fri Apr 26 19:01:29 2024 UTC