PHP restore_exception_handler() Function
Complete PHP Error Reference
Definition and Usage
The restore_exception_handler() function restores the previous exception handler.
This function is used to restore the previous exception handler after changing
it with the set_exception_handler() function.
This function always returns TRUE.
Syntax
|
restore_exception_handler()
|
Tips and Notes
Tip: The previous exception handler could be the built in exception handler or
a user-defined function.
Example
<?php
restore_exception_handler();
throw new Exception('Uncaught Exception occured');
?>
|
The output of the code above should be something like this:
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
|
Complete PHP Error Reference

Whether you're new to XML or already an advanced user,
the user-friendly views and powerful entry helpers,
wizards, and debuggers in XMLSpy are designed to meet your XML
and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- And much more!
Download a free trial today!
|
|
|
|