Class MvBlog_debug

Description

Debugging class that takes care of error reporting, etc.

Located in /common/mvblog_debug.php (line 25)


	
			
Variable Summary
static array $development_hostnames
static array $error_names
Method Summary
static void start_development ([bool $warn_strict = True])
static void start_pendantic_errors ([bool $warn_strict = True])
static void user_error_handler (int $errno, string $errstr, string $errfile, int $errline)
Variables
static array $development_hostnames = array(
"dev",
"localhost",
"127.0.0.1"
)
(line 29)
  • var: Hostnames that will turn on strict errors.
  • access: public
static array $error_names = array(
1 => "E_ERROR",
2 => "E_WARNING",
4 => "E_PARSE",
8 => "E_NOTICE",
16 => "E_CORE_ERROR",
32 => "E_CORE_WARNING",
64 => "E_COMPILE_ERROR",
128 => "E_COMPILE_WARNING",
256 => "E_USER_ERROR",
512 => "E_USER_WARNING",
1024 => "E_USER_NOTICE",
2048 => "E_STRICT",
4096 => "E_RECOVERABLE_ERROR",
8191 => "E_ALL",
)
(line 38)
  • var: List of errors in int and string format.
  • access: public
Methods
static method start_development (line 63)

Starts the development error reporting, which is much stricter than normal. This is to ensure that developers fix errors and notices that occur. This will only be set when the current hostname exists in the MvBlog_debug::$development_hostnames array.

  • access: public
static void start_development ([bool $warn_strict = True])
  • bool $warn_strict: (optional) Warn/stop on strict errors?
static method start_pendantic_errors (line 82)

Starts the pendantic error logging mode. Every error will stop execution of the script straight away. You can specify if you DON'T want Future errors to also stop the script.

  • access: public
static void start_pendantic_errors ([bool $warn_strict = True])
  • bool $warn_strict: (optional) Warn/stop on strict errors?
static method user_error_handler (line 113)

The MvBlog custom error handler. This error handler will does basically the same as the normal error, except that it also exists on when an error or notice is encountered.

  • access: public
static void user_error_handler (int $errno, string $errstr, string $errfile, int $errline)
  • int $errno: The php error number
  • string $errstr: The php error message
  • string $errfile: The php file where the error is
  • int $errline: The line where the error is

Documentation generated on Fri, 28 Dec 2007 13:17:40 +0100 by phpDocumentor 1.4.1