Skip to content

Commit f16c3e1

Browse files
committed
hash function
1 parent 49f9a89 commit f16c3e1

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

ext/hash/hash.stub.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
*/
99
const HASH_HMAC = UNKNOWN;
1010

11-
/** @refcount 1 */
11+
/**
12+
* @compile-time-eval
13+
* @refcount 1
14+
*/
1215
function hash(string $algo, string $data, bool $binary = false, array $options = []): string {}
1316

1417
/** @refcount 1 */
1518
function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): string|false {}
1619

1720
/**
21+
* @compile-time-eval
1822
* @refcount 1
1923
*/
2024
function hash_hmac(string $algo, string $data, #[\SensitiveParameter] string $key, bool $binary = false): string {}
@@ -45,12 +49,14 @@ function hash_copy(HashContext $context): HashContext {}
4549

4650
/**
4751
* @return array<int, string>
52+
* @compile-time-eval
4853
* @refcount 1
4954
*/
5055
function hash_algos(): array {}
5156

5257
/**
5358
* @return array<int, string>
59+
* @compile-time-eval
5460
* @refcount 1
5561
*/
5662
function hash_hmac_algos(): array {}
@@ -60,6 +66,9 @@ function hash_hmac_algos(): array {}
6066
*/
6167
function hash_pbkdf2(string $algo, #[\SensitiveParameter] string $password, string $salt, int $iterations, int $length = 0, bool $binary = false): string {}
6268

69+
/**
70+
* @compile-time-eval
71+
*/
6372
function hash_equals(#[\SensitiveParameter] string $known_string, #[\SensitiveParameter] string $user_string): bool {}
6473

6574
/**

ext/hash/hash_arginfo.h

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)