Exemple #1
0
 /**
  * Init function
  */
 public static function init()
 {
     static::$nFatalErrors = E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING;
     static::_loadExtension('File');
     if (!defined('ALTO_INSTALL')) {
         register_shutdown_function('F::done');
         set_error_handler('F::_errorHandler');
         set_exception_handler('F::_exceptionHandler');
         if (ini_get('display_errors')) {
             self::$nErrorDisplay = error_reporting();
         } else {
             self::$nErrorDisplay = 0;
         }
     }
 }