note 87701 rejected from class.errorexception by thiago
| From: | thiago@php.net | Date: | Wed, 17 Dec 2008 15:32:59 +0000 |
| Subject: | note 87701 rejected from class.errorexception by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148266@lists.php.net to get a copy of this message | ||
Note Submitter: samkellett at gmail dot com
----
<?php
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
set_error_handler("exception_error_handler");
new Test();
?>
This throws a Fatal Error, class not found. Instead of an ErrorException?