We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68302fe commit 6cbe3b5Copy full SHA for 6cbe3b5
ext/filter/filter.c
@@ -672,9 +672,9 @@ PHP_FUNCTION(filter_input)
672
if (!input || (tmp = zend_hash_find(Z_ARRVAL_P(input), var)) == NULL) {
673
zend_long filter_flags = 0;
674
zval *option, *opt, *def;
675
- if (filter_args_long) {
+ if (!filter_args_ht) {
676
filter_flags = filter_args_long;
677
- } else if (filter_args_ht) {
+ } else {
678
if ((option = zend_hash_str_find(filter_args_ht, "flags", sizeof("flags") - 1)) != NULL) {
679
filter_flags = zval_get_long(option);
680
}
0 commit comments