Skip to content

Commit 6ef8fd1

Browse files
committed
hash can be slow, do not evaluate it as CTE
1 parent dca71d9 commit 6ef8fd1

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

ext/hash/hash.stub.php

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

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

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

2017
/**
21-
* @compile-time-eval
2218
* @refcount 1
2319
*/
2420
function hash_hmac(string $algo, string $data, #[\SensitiveParameter] string $key, bool $binary = false): string {}

ext/hash/hash_arginfo.h

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

0 commit comments

Comments
 (0)