restore_error_handler

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:

Demonstrate how restore_error_handler() behaves
 <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"; ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.