혹시 모를 utf-8 외의 환경 방지

This commit is contained in:
2018-04-06 02:05:16 +09:00
parent 7a6472d49d
commit 1024f1c4dd
+4
View File
@@ -8,6 +8,10 @@ define('IMAGES', '../../images');
define('ROOT', realpath(__dir__.'/..'));
mb_internal_encoding("UTF-8");
mb_http_output('UTF-8');
mb_regex_encoding('UTF-8');
function logErrorByCustomHandler(int $errno, string $errstr, string $errfile, int $errline, array $errcontext){
if (!(error_reporting() & $errno)) {
// This error code is not included in error_reporting, so let it fall