static function start($level = null) { if ($level == null) { if (defined('E_DEPRECATED')) { $level = E_ALL & ~E_DEPRECATED; } else { $level = E_ALL; self::$IGNORE_DEPRECATED = true; } } set_error_handler(array('DOPBSPErrorsHandler', 'handle'), $level); }