From: hyamamoto at cybozu dot co dot jp
Operating system: Linux running on x86
PHP version: 4.3.3RC4
PHP Bug Type: mbstring related
Bug description: mb_convert_encoding returns FALSE when it tries to convert empty
string ('')
Description:
------------
mb_convert_encoding returns FALSE instead of expected
empty string when it tries to convert an empty string.
Reproduce code:
---------------
<?php
var_dump( mb_convert_encoding( '', 'SJIS', 'EUC-JP' ) );
?>
Expected result:
----------------
string(0) ""
Actual result:
--------------
bool(false)
--
Edit bug report at http://bugs.php.net/?id=25140&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25140&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25140&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25140&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25140&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25140&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25140&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25140&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25140&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25140&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25140&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25140&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25140&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25140&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25140&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25140&r=gnused