mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Return from filter_has_var() with RETURN_BOOL() (GH-21137)
This commit is contained in:
@@ -479,11 +479,7 @@ PHP_FUNCTION(filter_has_var)
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
if (array_ptr && zend_hash_exists(Z_ARRVAL_P(array_ptr), var)) {
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
||||
RETURN_FALSE;
|
||||
RETURN_BOOL(array_ptr && zend_hash_exists(Z_ARRVAL_P(array_ptr), var));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user