Skip to content

Fix filter_input() return value documentation#5381

Open
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:fix/issue-4361-filter-input-return-values
Open

Fix filter_input() return value documentation#5381
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:fix/issue-4361-filter-input-return-values

Conversation

@lacatoire
Copy link
Contributor

Fixes #4361

filter_input() returns null when the variable is not set, not false.
Also clarifies the FILTER_NULL_ON_FAILURE inverted behavior.

filter_input() returns null (not false) when the variable is not set.
Also clarify the FILTER_NULL_ON_FAILURE behavior which inverts the
return values: false when not set, null on filter failure.

Fixes php#4361
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.

Documentation of filter_input -> return values looks incorrect

1 participant

Comments