mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Fixed bug #50632 (filter_input() does not return default value if the variable does not exist)
This commit is contained in:
parent
614fd65795
commit
299c4c43ed
2
NEWS
2
NEWS
@ -9,6 +9,8 @@ PHP NEWS
|
||||
|
||||
- Fixed bug #50636 (MySQLi_Result sets values before calling constructor).
|
||||
(Pierrick)
|
||||
- Fixed bug #50632 (filter_input() does not return default value if the
|
||||
variable does not exist). (Ilia)
|
||||
- Fixed bug #48190 (Content-type parameter "boundary" is not case-insensitive
|
||||
in HTTP uploads). (Ilia)
|
||||
- Fixed bug #47409 (extract() problem with array containing word "this").
|
||||
|
@ -768,7 +768,8 @@ PHP_FUNCTION(filter_input)
|
||||
filter_flags = Z_LVAL_PP(filter_args);
|
||||
} else if (Z_TYPE_PP(filter_args) == IS_ARRAY && zend_hash_find(HASH_OF(*filter_args), "flags", sizeof("flags"), (void **)&option) == SUCCESS) {
|
||||
PHP_FILTER_GET_LONG_OPT(option, filter_flags);
|
||||
} else if (Z_TYPE_PP(filter_args) == IS_ARRAY &&
|
||||
}
|
||||
if (Z_TYPE_PP(filter_args) == IS_ARRAY &&
|
||||
zend_hash_find(HASH_OF(*filter_args), "options", sizeof("options"), (void **)&opt) == SUCCESS &&
|
||||
Z_TYPE_PP(opt) == IS_ARRAY &&
|
||||
zend_hash_find(HASH_OF(*opt), "default", sizeof("default"), (void **)&def) == SUCCESS
|
||||
|
Loading…
Reference in New Issue
Block a user