Skip to content

Commit 684e84d

Browse files
00
1 parent 4399f92 commit 684e84d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Charset.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,14 @@ public static function convert($str, $from, $to = null)
313313
) {
314314
// throw an exception if iconv reports an illegal character in input
315315
// it means that input string has been truncated
316-
set_error_handler(array('rcube_charset', 'error_handler'), E_NOTICE);
316+
#set_error_handler(array('rcube_charset', 'error_handler'), E_NOTICE);
317317
try {
318318
$out = iconv($from, $to . $iconv_options, $str);
319319
}
320320
catch (ErrorException $e) {
321321
$out = false;
322322
}
323-
restore_error_handler();
323+
#restore_error_handler();
324324

325325
if ($out !== false) {
326326
return $out;
@@ -347,14 +347,14 @@ public static function convert($str, $from, $to = null)
347347

348348
// throw an exception if mbstring reports an illegal character in input
349349
// using mb_check_encoding() is much slower
350-
set_error_handler(array('rcube_charset', 'error_handler'), E_WARNING);
350+
#set_error_handler(array('rcube_charset', 'error_handler'), E_WARNING);
351351
try {
352352
$out = mb_convert_encoding($str, $mb_to, $mb_from);
353353
}
354354
catch (ErrorException $e) {
355355
$out = false;
356356
}
357-
restore_error_handler();
357+
#restore_error_handler();
358358

359359
mb_substitute_character($mbstring_sc);
360360

0 commit comments

Comments
 (0)