September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool restore_error_handler(void)
Restores the previous error handler.
Returns:
TRUE
Description:
Calling restore_error_handler() removes the current custom error handler (if any) and returns to using the previously defined error handler. If no custom error handler has been defined, calls to this function are harmless. The function accepts no arguments.
Availability:
UNIX/Linux, Windows
Version:
4.0.1+
See also:
To set a custom error handler:
set_error_handler()
Example:
<pre> <?php // Define several trivial custom error handlers function custom_handler_one ($errno, $errstr, $errfile, $errline) { echo "custom_handler_one $errostr ($errno) in file $errfile on line $errline\n"; ... |
Read now
Unlock full access