PHP restore_exception_handler() 函數(shù) |
發(fā)布時間: 2012/9/1 17:21:25 |
定義和用法restore_exception_handler() 函數(shù)恢復之前的異常處理程序,該程序是由 set_exception_handler() 函數(shù)改變的。計算機學習網(wǎng)站www.boydavid.com 該函數(shù)永遠返回 true。
語法restore_exception_handler() 提示和注釋提示:之前的異常處理程序可能是在異常處理程序或用戶自定義函數(shù)中構建的。 計算機學習網(wǎng)站www.boydavid.com 例子<?php restore_exception_handler(); throw new Exception('Uncaught Exception occured'); ?> 輸出:
Fatal error: Uncaught exception 'Exception' with message 'Uncaught Exception occured' in C:\webfolder\test.php:4 Stack trace: #0 {main} thrown in C:\webfolder\test.php on line 4 本文出自:億恩科技【www.ypdoo.com.cn】 |