FPM is maliciously compliant when asked to set opcache.preload
まだ誰も着手していません。
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.1k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 96
説明
Description
The following FPM configuration:
php_value[opcache.preload] = /app/config/preload.php
php_value[opcache.preload_user] = app
results in phpinfo() advertising that config.
Yet when calling opcache_get_status(), there is no preload_statistics, and there is no performance improvement in the application.
I asked about this here, and was told that's because it is too late: when setting that config value, FPM has already started. If that's the case, I would expect an exception to be thrown, because I can think of a reason to allow editing that setting past a certain point
PHP Version
8.1.7
Operating System
Linux
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、php_value[opcache.preload] と php_value[opcache.preload_user] を使用して FPM の設定を再現し、その後 phpinfo() と opcache_get_status() を比較します。opcache のプリロード初期化に対して、FPM がこれらの設定をいつ適用するのかを追跡します。完了条件として、プリロード設定が遅すぎるタイミングで適用された場合の動作を定義し、テストする必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100