This commit is contained in:
2021-03-01 15:51:47 +08:00
parent 7dfbc70507
commit 3be16c6f7f
+7
View File
@@ -55,6 +55,8 @@ class ErrorHandler extends Component implements ErrorInterface
return;
}
var_dump($lastError);
$this->category = 'shutdown';
$messages = explode(PHP_EOL, $lastError['message']);
@@ -74,6 +76,8 @@ class ErrorHandler extends Component implements ErrorInterface
{
$this->category = 'exception';
var_dump($exception);
$event = Snowflake::app()->getEvent();
$event->trigger(Event::SYSTEM_RESOURCE_CLEAN);
@@ -92,6 +96,9 @@ class ErrorHandler extends Component implements ErrorInterface
return;
}
var_dump(func_get_args());
$path = ['file' => $error[2], 'line' => $error[3]];
if ($error[0] === 0) {