Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FILTER_VALIDATE_BOOL vs FILTER_VALIDATE_BOOLEAN behavior difference not documented #3175

Closed
Aycarambo opened this issue Feb 12, 2024 · 2 comments

Comments

@Aycarambo
Copy link

From manual page: https://php.net/filter.filters.validate


Documentation states that FILTER_VALIDATE_BOOL is simply an alias for FILTER_VALIDATE_BOOLEAN but both do not behave in the same way.

filter_var(NULL, FILTER_VALIDATE_BOOLEAN); // bool(false)
filter_var(NULL, FILTER_VALIDATE_BOOL); // NULL

Why is that ?

@kamil-tekiela
Copy link
Member

Am I missing something? https://3v4l.org/Hp37N

@Girgias
Copy link
Member

Girgias commented Feb 13, 2024

This does not seem like a documentation bug.

@Girgias Girgias closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2024
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

No branches or pull requests

3 participants