Commit c9575717 authored by Taylor Otwell's avatar Taylor Otwell

Make sure file class is loaded before handling exceptions.

parent 87166aa0
......@@ -61,6 +61,7 @@ set_exception_handler(function($e)
{
require_once SYS_PATH.'exception/handler'.EXT;
require_once SYS_PATH.'exception/examiner'.EXT;
require_once SYS_PATH.'file'.EXT;
Exception\Handler::make($e)->handle();
});
......@@ -69,6 +70,7 @@ set_error_handler(function($number, $error, $file, $line)
{
require_once SYS_PATH.'exception/handler'.EXT;
require_once SYS_PATH.'exception/examiner'.EXT;
require_once SYS_PATH.'file'.EXT;
Exception\Handler::make(new \ErrorException($error, $number, 0, $file, $line))->handle();
});
......@@ -79,6 +81,7 @@ register_shutdown_function(function()
{
require_once SYS_PATH.'exception/handler'.EXT;
require_once SYS_PATH.'exception/examiner'.EXT;
require_once SYS_PATH.'file'.EXT;
extract($error);
......
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