XXVII. Error Handling and Logging Functions

Introduction

Requirements

These functions are available as part of the standard module , which is always available .

Installation

There is no installation needed to use these functions , they are part of the PHP core .

Runtime Configuration

Taulu 1 .

For further details and definition of the PHP_INI_* constants see ini_set() .

error_reporting integer

Huomaa :

display_errors boolean

display_startup_errors boolean

log_errors boolean

Huomaa :

log_errors_max_len integer

ignore_repeated_errors boolean

ignore_repeated_source boolean

report_memleaks boolean

track_errors boolean

html_errors boolean

docref_root string

docref_ext string

Huomaa :

error_prepend_string string

error_append_string string

error_log string

warn_plus_overloading boolean



Predefined Constants

The constants listed here are always available as part of the PHP core .

Huomaa :

Taulu 2 .

Examples

Esimerkki 1 .






See Also

Sisällys
debug_backtrace -- Generates a backtrace
error_log -- send an error message somewhere
error_reporting -- set which PHP errors are reported
restore_error_handler -- Restores the previous error handler function
set_error_handler -- Sets a user-defined error handler function.
trigger_error -- Generates a user-level error/warning/notice message
user_error -- Generates a user-level error/warning/notice message