PHP Error Handling and Logging Functions
EditRocket provides the following information on Error Handling and Logging functions in the PHP source code builder.
array debug_backtrace ( void ) - debug_backtrace() generates a PHP backtrace.
void debug_print_backtrace ( void ) - debug_print_backtrace() prints a PHP backtrace.
array error_get_last ( void ) - Gets information about the last error that occured.
bool error_log ( string $message [, int $message_type [, string $destination [, string $extra_headers ]]] ) -
int error_reporting ([ int $level ] ) -
bool restore_error_handler ( void ) -
bool restore_exception_handler ( void ) -
mixed set_error_handler ( callback $error_handler [, int $error_types ] ) - Sets a user function (error_handler) to handle errors in a script.
string set_exception_handler ( callback $exception_handler ) - Sets the default exception handler if an exception is not caught within a try/catch block. Execution will stop after the exception_handler is called.
bool trigger_error ( string $error_msg [, int $error_type ] ) -
-