男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站

restore_exception_handler

(PHP 5, PHP 7, PHP 8)

restore_exception_handler 恢復之前定義過(guò)的異常處理函數。

說(shuō)明

restore_exception_handler(): bool

在使用 set_exception_handler() 改變異常處理函數之后,此函數可以 用于還原之前的異常處理程序(可以是內置的或者也可以是用戶(hù)所定義的函數)。

返回值

該函數總是返回 true。

范例

示例 #1 restore_exception_handler() 范例

<?php
    
function exception_handler_1(Exception $e)
    {
        echo 
'[' __FUNCTION__ '] ' $e->getMessage();
    }

    function 
exception_handler_2(Exception $e)
    {
        echo 
'[' __FUNCTION__ '] ' $e->getMessage();
    }

    
set_exception_handler('exception_handler_1');
    
set_exception_handler('exception_handler_2');

    
restore_exception_handler();

    throw new 
Exception('This triggers the first exception handler...');
?>

以上例程會(huì )輸出:

[exception_handler_1] This triggers the first exception handler...

參見(jiàn)

男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站