Skip to content

filter: Refactor filter constants by splitting into separate files - #5886

Merged
lacatoire merged 1 commit into
php:masterfrom
jordikroon:refactor-filter
Sep 27, 2026
Merged

lacatoire merged 1 commit into
php:masterfrom
jordikroon:refactor-filter

Conversation

@jordikroon

@jordikroon jordikroon commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

This is only a structural change. The current https://www.php.net/manual/en/filter.constants.php, with all the warnings feels very unorganised. The file itself is also a whopping 1319 lines though that alone is not a reason by itself.

This change splits the filter -> Predefined Constants into sub files.

image

@lacatoire
lacatoire merged commit a109099 into php:master Sep 27, 2026
3 checks passed
@jordikroon

Copy link
Copy Markdown
Member Author

@lacatoire It has been mentioned a few times, but please just let members merge their MRs themselves. Unless it either being stale for too long or on request.

@jordikroon
jordikroon deleted the refactor-filter branch September 27, 2026 18:21
@lacatoire

Copy link
Copy Markdown
Member

@lacatoire It has been mentioned a few times, but please just let members merge their MRs themselves. Unless it either being stale for too long or on request.

This one was only a split, so i expected i could merge

KentarouTakeda added a commit to php/doc-ja that referenced this pull request Oct 4, 2026
filter の 7 ファイルを原文の変更に追従しました。これで filter モジュールの未訳・要更新はなくなります。

原文では次の変更がありました。

- 定数のページが、入力・一般的なフィルタフラグ・除去フィルタのフラグ・検証フィルタ・除去フィルタ・ユーザー定義のフィルタの 6 ファイルに分割されました(php/doc-en@a109099、php/doc-en#5886)。分割で英文は変わっていないため、新しい 6 ファイルには constants.xml の既訳をそのまま移しています
- `FILTER_VALIDATE_DOMAIN` が空白文字や制御文字、NUL バイトまで受け入れることが、例とともに追記されました(php/doc-en@74492d2、php/doc-en#5867)

## 対象ファイル

reference/filter/ (7) — constants.xml, constants.callback.xml, constants.flags.generic.xml, constants.flags.sanitization.xml, constants.input.xml, constants.sanitization.xml, constants.validation.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants