mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08:00
password_hash() can't return false
This commit is contained in:
parent
bb41a1b7e7
commit
40dcf2bd3d
@ -991,7 +991,7 @@ function unpack(string $format, string $data, int $offset = 0): array|false {}
|
||||
|
||||
function password_get_info(string $hash): ?array {}
|
||||
|
||||
function password_hash(string $password, $algo, array $options = []): string|false|null {}
|
||||
function password_hash(string $password, $algo, array $options = []): ?string {}
|
||||
|
||||
function password_needs_rehash(string $hash, $algo, array $options = []): bool {}
|
||||
|
||||
|
@ -1476,7 +1476,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_password_get_info, 0, 1, IS_ARRA
|
||||
ZEND_ARG_TYPE_INFO(0, hash, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_password_hash, 0, 2, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_password_hash, 0, 2, IS_STRING, 1)
|
||||
ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
|
||||
ZEND_ARG_INFO(0, algo)
|
||||
ZEND_ARG_TYPE_INFO(0, options, IS_ARRAY, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user