Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #25140 (mb_convert_encoding returns FALSE on an empty string) --EXTENSIONS-- ..
Decoded Output download
--TEST--
Bug #25140 (mb_convert_encoding returns FALSE on an empty string)
--EXTENSIONS--
mbstring
--FILE--
<?php
var_dump( mb_convert_encoding( '', 'SJIS', 'EUC-JP' ) );
?>
--EXPECT--
string(0) ""
Did this file decode correctly?
Original Code
--TEST--
Bug #25140 (mb_convert_encoding returns FALSE on an empty string)
--EXTENSIONS--
mbstring
--FILE--
<?php
var_dump( mb_convert_encoding( '', 'SJIS', 'EUC-JP' ) );
?>
--EXPECT--
string(0) ""
Function Calls
mb_convert_encoding | 1 |
Stats
MD5 | 2b56e78d5e719b0b39c41aaa9cf34f6b |
Eval Count | 0 |
Decode Time | 98 ms |