Make sure file class is loaded before handling exceptions.
This commit is contained in:
parent
87166aa0ea
commit
c95757175b
|
@ -61,6 +61,7 @@
|
|||
{
|
||||
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 @@
|
|||
{
|
||||
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 @@
|
|||
{
|
||||
require_once SYS_PATH.'exception/handler'.EXT;
|
||||
require_once SYS_PATH.'exception/examiner'.EXT;
|
||||
require_once SYS_PATH.'file'.EXT;
|
||||
|
||||
extract($error);
|
||||
|
||||
|
|
Loading…
Reference in New Issue