restore_error_handler

Restores the previous error handler function

Syntax

restore_error_handler ( void ) : bool

Return

This function always returns TRUE.

Examples

<?

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.

PHP

Home Menu