Add support for sensitive parameters in stubs

This commit is contained in:
Máté Kocsis 2022-06-02 15:11:48 +02:00
parent 49951165f0
commit debd38f851
27 changed files with 172 additions and 67 deletions

View file

@ -1629,11 +1629,15 @@ function unpack(string $format, string $string, int $offset = 0): array|false {}
*/
function password_get_info(string $hash): array {}
/** @refcount 1 */
/**
* @refcount 1
* @sensitive-param $password
*/
function password_hash(string $password, string|int|null $algo, array $options = []): string {}
function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {}
/** @sensitive-param $password */
function password_verify(string $password, string $hash): bool {}
function password_algos(): array {}