fix possible error loading error class.
This commit is contained in:
parent
39601e8a78
commit
47b60135bb
|
@ -27,18 +27,24 @@
|
||||||
|
|
||||||
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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue