Please answer this simple SPAM challenge: eight plus zero?
(Example: nine)

The Note You're Voting On

fjoggen at gmail dot com
12 years ago
This code will turn php errors into exceptions:

function exceptions_error_handler($severity, $message, $filename, $lineno) {
    throw new
ErrorException($message, 0, $severity, $filename, $lineno);


However since <?php set_error_handler()?> doesn't work with fatal errors, you will not be able to throw them as Exceptions.

<< Back to user notes page

To Top