autoload 경로 재 변경

kakao를 별도의 namespace로 분리
외부 class의 namespace 문제 해결
This commit is contained in:
2018-03-24 18:46:37 +09:00
parent dc507601f5
commit 037a29ad02
25 changed files with 44 additions and 241 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ function getmicrotime() {
return $microtimestmp[0] + $microtimestmp[1];
}
function logErrorByCustomHandler(int $errno , string $errstr, string $errfile, int $errline, array $errcontext){
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
// through to the standard PHP error handler
@@ -36,7 +36,7 @@ function logErrorByCustomHandler(int $errno , string $errstr, string $errfile, i
/* Don't execute PHP internal error handler */
return true;
}
set_error_handler("logErrorByCustomHandler");
set_error_handler("\sammo\logErrorByCustomHandler");
function Error($msg) {
AppendToFile(ROOT.'/d_log/err.txt', $msg."\n");