1
0
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:
Arshid
2026-02-05 19:43:35 +05:30
committed by GitHub
parent 984f95ffc1
commit 8ebdbb7630

View File

@@ -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));
}
/* }}} */