小白教程
所有教程
关于
Search
108.162.216.101
108.162.216.101
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func error restore exception handler”的源代码
本页内容
上一节:
Func_error_restore_error_handler
下一节:
Func_error_set_error_handler
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:restore_exception_handler()}}[[Category:PHP Error 错误参考手册|7]] = PHP restore_exception_handler() 函数 = [[:Category:PHP Error 错误参考手册]] == 定义和用法 == restore_exception_handler() 函数恢复之前的异常处理程序。 该函数用于在通过 set_exception_handler() 函数改变后恢复之前的异常处理程序。 该函数总是返回 TRUE。 == 语法 == <pre> restore_exception_handler() </pre> == 提示和注释 == '''提示:'''之前的异常处理程序可能是在内建的异常处理程序或用户自定义函数中构建的。 <sample title="" desc="" lang="php" hererun="1"> <?php restore_exception_handler(); throw new Exception('Uncaught Exception occured'); ?> </sample> 上面代码的输出如下所示: <pre> Fatal error: Uncaught exception 'Exception' with message 'Uncaught Exception occured' in C:webfoldertest.php:4 Stack trace: #0 {main} thrown in C:webfoldertest.php on line 4 </pre> [[:Category:PHP Error 错误参考手册]]
返回至“
Func error restore exception handler
”。
上一节:
Func_error_restore_error_handler
下一节:
Func_error_set_error_handler