Make sure file class is loaded before handling exceptions.

This commit is contained in:
Taylor Otwell
2011-08-17 10:23:54 -05:00
parent 87166aa0ea
commit c95757175b

View File

@@ -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);