2
Bug #49536 (mb_detect_encoding() returns incorrect results when strict_mode is turned on)
4
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
8
var_dump(mb_detect_encoding("A\x81", "SJIS", false));
10
var_dump(mb_detect_encoding("A\x81", "SJIS", true));
12
var_dump(mb_detect_encoding("\xc0\x00", "UTF-8", false));
14
var_dump(mb_detect_encoding("\xc0\x00", "UTF-8", true));