`set_error_handler` should be able to handle fatal error once
まだ誰も着手していません。
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.2k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 96
説明
Description
Currently, fatal error can be handled, but it is not possible to do so using handler set by set_error_handler, but workaround using register_shutdown_function. This is not only too complex, but there is no guarantee such handler is/was registered as the first shutdown function.
An example is here: https://github.com/phpstan/phpstan-src/blob/1.10.50/src/Command/CommandHelper.php#L137-L154
This is a feature request to allow error handler to handle fatal error when php enters into shutdown before the 1st shutdown handler is executed.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue に記載されている既存の set_error_handler と register_shutdown_function の動作を確認し、現在の workaround について、リンクされている phpstan の例を確認してください。最初のシャットダウンハンドラーが実行される前に、致命的なエラーをエラーハンドラーによって一度処理でき、別途登録されたシャットダウン関数に依存しない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c, php
- 領域
- backend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100