mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Fix #19401: Delay exit(1) in yii\base\ErrorHandler::handleFatalError
This commit is contained in:
@ -28,6 +28,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #19368: Fix PHP 8.1 error when `$fileMimeType` is `null` in `yii\validators\FileValidator::validateMimeType()` (bizley)
|
||||
- Enh #19384: Normalize `setBodyParams()` and `getBodyParam()` in `yii\web\Request` (WinterSilence, albertborsos)
|
||||
- Bug #19386: Fix recursive calling `yii\helpers\BaseArrayHelper::htmlDecode()` (WinterSilence)
|
||||
- Enh #19401: Delay `exit(1)` in `yii\base\ErrorHandler::handleFatalError` (arrilot)
|
||||
- Bug #19402: Add shutdown event and fix working directory in `yii\base\ErrorHandler` (WinterSilence)
|
||||
- Enh #19416: Update and improve configurations for `yii\console\controllers\MessageController` (WinterSilence)
|
||||
- Bug #19403: Fix types in `yii\web\SessionIterator` (WinterSilence)
|
||||
|
||||
@ -321,7 +321,10 @@ abstract class ErrorHandler extends Component
|
||||
|
||||
$this->trigger(static::EVENT_SHUTDOWN);
|
||||
|
||||
exit(1);
|
||||
// ensure it is called after user-defined shutdown functions
|
||||
register_shutdown_function(function() {
|
||||
exit(1);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user