restore_exception_handler

(PHP 5)

restore_exception_handler Restores the previously defined exception handler function

Description

bool restore_exception_handler ( void )

Used after changing the exception handler function using set_exception_handler(), to revert to the previous exception handler (which could be the built-in or a user defined function).

Return Values

This function always returns TRUE.

Examples

Example #1 restore_exception_handler() example

<?php
    
function exception_handler_1(Exception $e)
    {
        echo 
'[' __FUNCTION__ eRi1="color: ='ru2ss="para"> ;iion.ethodbsp;Except} style style="color: #0000BB">Except000"> <?php
   &2bsp;
function exception_handler_1(Exception $e)
    {
        echo 
'[' __FUNCTION__ eRi1="color: ='ru2ss="para"> ;iion.ethodbsp;Except} style style="color: #0000BB">Exceptiv B">eRi1="color: ='ru2ss="para"> ;ndler function using bsp;function Exceptiv B">eRi1="color: ='ru2ss="para"> ;ndler function using bsp;function Exceptiv B">eRi1="color: ='ru2ss="para"> ;">restore_exception_handlerpan>ExceptthrowExceptnewExceptiv B">eRi1="color: ='ru2ss="para"> ;"color: #bsp;function eRi1="color: ='ru2ss="para"> ;?
e iv B">e ivtore_etranslate.p class="m01">

Example #1 n xare> [nbsp;  &n]unctiotriggeri"func0irst.set-exception-hana.. ivare>etranslate.p class/report.php?bulass="title" >Return Values This function always returns TRUseealso">.

t> f="/docs.phmemb="ht> )

Used after changing the exception hscriptestorseeAlso">ndler function using restore_exceptionndler )

andler » g the exception hscriptestorseeAlso">ndler iv> )

ral/en/se < are ral/enedndlerErrobulass="title"="titl ردازش خptionurition-handler">Repttp:p'>پر )

a

Edit <'12'class="n'12'clasmall>add cenurindlmall>

couepti1enurindler -
ody class="docsavascrivuri-nurit=PHP 114471ieldse-handler.php">Edit uphp.net/report.php? ody class="docsavascrivuri-nurit=PHP 114471ieldse-handler.php">Edit ody c3rror Handling