diff options
author | Florian Berberich <php.florianberberich@outlook.com> | 2019-03-29 20:18:19 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-08 13:22:26 +0200 |
commit | 07df6594b5c71b176b376aba8007bc33616bbfb0 (patch) | |
tree | 8f6fbdac703982295c84d15a5abe2c91d8a32f93 /main/php.h | |
parent | 897cb8bc6f381692273577c679e6ed04912feb76 (diff) | |
download | php-git-07df6594b5c71b176b376aba8007bc33616bbfb0.tar.gz |
Added range options to the float validation filter
php_filter_int (called via the constant FILTER_VALIDATE_INT) has the options min_range
and max_range. they allow the user to not only test if a value is a double but also if
the value is inside a specific range. php_filter_float (called via the constant
FILTER_VALIDATE_FLOAT) didn't provide this yet, making validation of numeric but
not-only-int values more complicated for the user.
this commits implements the options min_range and max_range for the function
php_filter_float to fix this inconsistency.
Diffstat (limited to 'main/php.h')
0 files changed, 0 insertions, 0 deletions