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'; ...@@ -27,18 +27,24 @@ require 'core.php';
set_exception_handler(function($e) set_exception_handler(function($e)
{ {
require path('sys').'error'.EXT;
Error::exception($e); Error::exception($e);
}); });
set_error_handler(function($code, $error, $file, $line) set_error_handler(function($code, $error, $file, $line)
{ {
require path('sys').'error'.EXT;
Error::native($code, $error, $file, $line); Error::native($code, $error, $file, $line);
}); });
register_shutdown_function(function() register_shutdown_function(function()
{ {
require path('sys').'error'.EXT;
Error::shutdown(); 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