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
1 changed files with 3 additions and 0 deletions

View File

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