php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #69086 enhancement for mb_convert_encoding
Submitted: 2015-02-20 04:48 UTC Modified: 2015-02-27 05:06 UTC
From: masakielastic at gmail dot com Assigned: yohgaki (profile)
Status: Closed Package: mbstring related
PHP Version: 5.6.6 OS:
Private report: No CVE-ID: None
 [2015-02-20 04:48 UTC] 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) ""

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-20 05:49 UTC] masakielastic at gmail dot com
I changed the bug type,
 [2015-02-27 05:06 UTC] yohgaki@php.net
-Assigned To: +Assigned To: yohgaki
 [2015-02-27 05:06 UTC] yohgaki@php.net
Looks good. Assign myself as reminder.
 [2016-08-10 05:44 UTC] yohgaki@php.net
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
 [2016-08-10 05:44 UTC] yohgaki@php.net
-Status: Assigned +Status: Closed
 [2016-10-10 11:17 UTC] krakjoe@php.net
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
 [2017-01-12 09:12 UTC] krakjoe@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC