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.
热门推荐
10 香港老妈结婚祝福语简短
11 毕业立体贺卡祝福语简短
12 简短新年年会祝福语
13 评论小品祝福语大全简短
14 恭喜师兄结婚祝福语简短
15 员工集体辞职祝福语简短
16 高中新生祝福语 简短
17 装修祝福语男生搞笑简短
18 生日开业蛋糕祝福语简短