예제 #1
0
파일: Api.php 프로젝트: robeendey/ce
 /**
  * Register error handlers
  */
 public static function registerErrorHandlers()
 {
     // Compat
     defined('E_RECOVERABLE_ERROR') || define('E_RECOVERABLE_ERROR', 4096);
     defined('E_DEPRECATED') || define('E_DEPRECATED', 8192);
     defined('E_USER_DEPRECATED') || define('E_USER_DEPRECATED', 16384);
     // Set mask
     self::$_errorReporting = E_ERROR | E_COMPILE_ERROR | E_COMPILE_WARNING | E_CORE_ERROR | E_CORE_WARNING | E_ERROR | E_PARSE | E_RECOVERABLE_ERROR | E_USER_ERROR;
     // Register
     set_error_handler(array('Engine_Api', 'handleError'));
     set_exception_handler(array('Engine_Api', 'handleException'));
 }