Skip to content

Commit 8ebdbb7

Browse files
authored
Return from filter_has_var() with RETURN_BOOL() (GH-21137)
1 parent 984f95f commit 8ebdbb7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ext/filter/filter.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,11 +479,7 @@ PHP_FUNCTION(filter_has_var)
479479
RETURN_THROWS();
480480
}
481481

482-
if (array_ptr && zend_hash_exists(Z_ARRVAL_P(array_ptr), var)) {
483-
RETURN_TRUE;
484-
}
485-
486-
RETURN_FALSE;
482+
RETURN_BOOL(array_ptr && zend_hash_exists(Z_ARRVAL_P(array_ptr), var));
487483
}
488484
/* }}} */
489485

0 commit comments

Comments
 (0)