downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

set_error_handler> <restore_error_handler
Last updated: Fri, 13 Nov 2009

view this page in

restore_exception_handler

(PHP 5)

restore_exception_handlerBir önceki istisna eylemcisini devreye sokar

Açıklama

bool restore_exception_handler ( void )

set_exception_handler() ile istisna eylemcisini değiştirdikten sonra önceki istisna eylemcisini (yerleşik veya kullanıcı tanımlı bir işlev) devreye sokmak için kullanılır.

Dönen Değerler

Bu işlev daima TRUE döndürür.

Örnekler

Örnek 1 - restore_exception_handler() örneği

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

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

  
set_exception_handler('istisna_eylemci_1');
  
set_exception_handler('istisna_eylemci_2');

  
restore_exception_handler();

  throw new 
Exception('İlk istisna eylemcisi tetiklenir...');
?>

Yukarıdaki örneğin çıktısı:

[istisna_eylemci_1] İlk istisna eylemcisi tetiklenir...

Ayrıca Bakınız



add a note add a note User Contributed Notes
restore_exception_handler
There are no user contributed notes for this page.

set_error_handler> <restore_error_handler
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites