You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the stub file entries for hash() and hash_hmac() to be incorrect. Their return types are both specified as string|false, but starting with PHP 8.0 they in fact never return false, they throw a fatal error where they returned false before PHP 8.0. In the case of hash() the only two RETURN_FALSE statements (1, 2) are within if (isfilename)blocks, e.g. the code path used exclusively by hash_file(). It's similar for hash_hmac().
Does that make sense or did I miss something?
PHP Version
PHP >= 8.0
Operating System
All OSes
The text was updated successfully, but these errors were encountered:
Description
I believe the stub file entries for
hash()
andhash_hmac()
to be incorrect. Their return types are both specified asstring|false
, but starting with PHP 8.0 they in fact never returnfalse
, they throw a fatal error where they returnedfalse
before PHP 8.0. In the case ofhash()
the only twoRETURN_FALSE
statements (1, 2) are withinif (isfilename)
blocks, e.g. the code path used exclusively byhash_file()
. It's similar forhash_hmac()
.Does that make sense or did I miss something?
PHP Version
PHP >= 8.0
Operating System
All OSes
The text was updated successfully, but these errors were encountered: