fix possible error loading error class.

This commit is contained in:
Taylor Otwell 2012-04-24 08:57:31 -05:00
parent 39601e8a78
commit 47b60135bb
1 changed files with 6 additions and 0 deletions

View File

@ -27,18 +27,24 @@
set_exception_handler(function($e)
{
require path('sys').'error'.EXT;
Error::exception($e);
});
set_error_handler(function($code, $error, $file, $line)
{
require path('sys').'error'.EXT;
Error::native($code, $error, $file, $line);
});
register_shutdown_function(function()
{
require path('sys').'error'.EXT;
Error::shutdown();
});