Skip to content

Remove incorrect warning about FILTER_CALLBACK flags#5243

Open
lacatoire wants to merge 2 commits into
php:masterfrom
lacatoire:fix/issue-2708-filter-callback-flags
Open

Remove incorrect warning about FILTER_CALLBACK flags#5243
lacatoire wants to merge 2 commits into
php:masterfrom
lacatoire:fix/issue-2708-filter-callback-flags

Conversation

@lacatoire

@lacatoire lacatoire commented Feb 2, 2026

Copy link
Copy Markdown
Member

Fixes #2708

Remove incorrect statement that FILTER_CALLBACK cannot be used with filter flags like FILTER_NULL_ON_FAILURE.

The documentation incorrectly stated that FILTER_CALLBACK cannot be used
with filter flags like FILTER_NULL_ON_FAILURE. In practice, these flags
do affect the behavior of FILTER_CALLBACK.

Fixes php#2708
@lacatoire lacatoire force-pushed the fix/issue-2708-filter-callback-flags branch from 1cc1b6c to 5d746ea Compare June 23, 2026 14:12
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.

FILTER_CALLBACK does not ignore all flags

2 participants