ignore_repeated_errors ini entry does not work
オープン
まだ誰も着手していません。
Category: Engine
Feature
Status: Verified
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.2k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 96
説明
Description
The following code:
<?php
ini_set('ignore_repeated_errors', 1);
for($i=0; $i<10; $i++ ) {
trim($at);
}
?>
Resulted in this output in the error-log-file:
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
But I expected this output in the error-log-file instead:
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
PHP Version
PHP 8.4.11 cli
Operating System
Windows Server 2019
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、ini_set('ignore_repeated_errors', 1) と未定義変数に関する警告の繰り返しを使って、報告にある PHP 8.4.11 の CLI 例を再現し、その後、PHP のエラーロギングのエントリポイントを通じて ini 設定を追跡します。期待されるログ出力に示されているとおり、同一の警告の繰り返しが抑制され、報告されたケースのリグレッションカバレッジが追加されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100