Enforce UTF-8 in App (disallow mbstring.func_overload)

This commit is contained in:
Chris Boden 2014-02-05 23:06:49 -05:00
parent 36215fbc7b
commit 3dc69de9d3

View File

@ -59,6 +59,10 @@ class App {
trigger_error("XDebug extension detected. Remember to disable this if performance testing or going live!", E_USER_WARNING); trigger_error("XDebug extension detected. Remember to disable this if performance testing or going live!", E_USER_WARNING);
} }
if (3 !== strlen('✓')) {
throw new \DomainException('Bad encoding, length of unicode character ✓ should be 3. Ensure charset UTF-8 and check ini val mbstring.func_autoload');
}
if (null === $loop) { if (null === $loop) {
$loop = LoopFactory::create(); $loop = LoopFactory::create();
} }