Commit 47b60135 authored by Taylor Otwell's avatar Taylor Otwell

fix possible error loading error class.

parent 39601e8a
......@@ -27,18 +27,24 @@ require 'core.php';
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();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment