note 99193 modified in function.set-error-handler by danbrown
| From: | danbrown@php.net | Date: | Mon, 02 Aug 2010 15:09:40 +0000 |
| Subject: | note 99193 modified in function.set-error-handler by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171335@lists.php.net to get a copy of this message | ||
How to handle fatal errors in php 5.2:
<?php
register_shutdown_function('shutdownFunction');
function shutDownFunction() {
$error = error_get_last();
if ($error['type'] == 1) {
//do your stuff
}
}
?>
--was--
How to handle fatal errors in php 5.2:
register_shutdown_function('shutdownFunction');
function shutDownFunction() {
$error = error_get_last();
if ($error['type'] == 1) {
//do your stuff
}
}
http://php.net/manual/en/function.set-error-handler.php