Req #69086 [Asn->Csd]: enhancement for mb_convert_encoding
Edit report at https://bugs.php.net/bug.php?id=69086&edit=1
ID: 69086
Updated by: yohgaki@php.net
Reported by: masakielastic at gmail dot com
Summary: enhancement for mb_convert_encoding
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: mbstring related
PHP Version: 5.6.6
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of yohgaki
Revision: http://git.php.net/?p=php-src.git;a=commit;h=850a0b5fb62cbee0f314fa3e9b0747128527a19c
Log: Merge pull request #1098 Fix bug #69086 enhancement for mb_convert_encoding
Previous Comments:
------------------------------------------------------------------------
[2015-02-27 05:06:34] yohgaki@php.net
Looks good. Assign myself as reminder.
------------------------------------------------------------------------
[2015-02-20 05:49:39] masakielastic at gmail dot com
I changed the bug type,
------------------------------------------------------------------------
[2015-02-20 04:48:22] masakielastic at gmail dot com
Description:
------------
mb_convert_encoding doesnt't properly handle the value of mb_substitute_character when the
third argument is different from the value of mb_internal_encoding.
Test script:
---------------
mb_substitute_character(0xFFFD);
var_dump(mb_convert_encoding("\x80", "Shift_JIS", "EUC-JP"));
Expected result:
----------------
string(1) "?"
Actual result:
--------------
string(0) ""
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69086&edit=1
Thread (4 messages)