PHP中的restore_error_handler()函数
restore_error_handling()函数可还原以前的错误处理程序。在使用set_error_handler()更改错误处理程序函数之后,将其用于恢复到先前的错误处理程序(可以是内置的或用户定义的函数)
语法
restore_error_handler()
参数
不适用
返回
restore_error_handler()函数返回TRUE。
示例
以下是一个例子-
<?php
function unserialize_handler($errno, $errstr) {
echo "Custom error: Invalid hello value.\n";
}
$hello = 'pqrs'; set_error_handler('unserialize_handler');
$original = unserialize($hello);
restore_error_handler();
?>输出结果
Custom error: Invalid hello value.
热门推荐
8 送蛇的祝福语简短
10 叔叔生日祝福语简短励志
11 考试祝福语日文简短版
12 祝球员赛前祝福语简短
13 简短霸气的考试祝福语
14 结婚喜庆的祝福语简短
15 简短的出行工作祝福语
16 祝贺开业文案祝福语简短
17 理科元旦祝福语大全简短
18 好朋友夫妻祝福语简短