PHP 教程 PHP 表单 PHP 高级教程 PHP 数据库 PHP XML PHP 与 AJAX PHP 参考手册

发布于 2016-11-18 14:30:13 | 78 次阅读 | 评论: 0 | 来源: 网络整理


定义和用法

restore_exception_handler() 函数恢复之前的异常处理程序。

该函数用于在通过 set_exception_handler() 函数改变后恢复之前的异常处理程序。

该函数总是返回 TRUE。

语法

 restore_exception_handler() 


提示和注释

提示:之前的异常处理程序可能是在内建的异常处理程序或用户自定义函数中构建的。


实例

 <?php
 restore_exception_handler();

 throw new Exception('Uncaught Exception occured');
 ?> 

上面代码的输出如下所示:

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


最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务