restore_error_handler
Description
The restore_error_handler of Error Handling for PHP restores the previous error handler function.
Syntax
restore_error_handler ( void ) : bool
Return
This function always returns TRUE.
Examples
1
<? function unserialize_handler($errno, $errstr) { echo "Invalid serialized value."; } $serialized = 'test'; set_error_handler('unserialize_handler'); $original = unserialize($serialized); restore_error_handler(); ?>
Invalid serialized value.