Please answer this simple SPAM challenge: two minus two?
(Example: nine)

The Note You're Voting On

fjoggen at gmail dot com
11 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