The mbstring PHP module has a strict_detection
setting, documented here. Unfortunately, the manual is completely useless; it only says that this option "enables the strict encoding detection".
I did a few tests and could not find how any of the mbstring functions are affected by this. mb_check_encoding()
and mb_detect_encoding()
give exactly the same result for both valid and invalid UTF-8 input.
(edit:) The mbstring.strict_detection
option was added in PHP 5.1.2.