Skip to content

Commit 435db30

Browse files
committed
Add since for mhash deprecations
1 parent 1c1c6ce commit 435db30

File tree

3 files changed

+47
-22
lines changed

3 files changed

+47
-22
lines changed

ext/hash/hash.stub.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,28 @@ function hash_equals(#[\SensitiveParameter] string $known_string, #[\SensitivePa
7070
function hash_hkdf(string $algo, #[\SensitiveParameter] string $key, int $length = 0, string $info = "", string $salt = ""): string {}
7171

7272
#ifdef PHP_MHASH_BC
73-
#[\Deprecated]
73+
#[\Deprecated(since: '8.1')]
7474
function mhash_get_block_size(int $algo): int|false {}
7575

7676
/**
7777
* @refcount 1
7878
*/
79-
#[\Deprecated]
79+
#[\Deprecated(since: '8.1')]
8080
function mhash_get_hash_name(int $algo): string|false {}
8181

8282
/**
8383
* @refcount 1
8484
*/
85-
#[\Deprecated]
85+
#[\Deprecated(since: '8.1')]
8686
function mhash_keygen_s2k(int $algo, string $password, string $salt, int $length): string|false {}
8787

88-
#[\Deprecated]
88+
#[\Deprecated(since: '8.1')]
8989
function mhash_count(): int {}
9090

9191
/**
9292
* @refcount 1
9393
*/
94-
#[\Deprecated]
94+
#[\Deprecated(since: '8.1')]
9595
function mhash(int $algo, string $data, ?string $key = null): string|false {}
9696
#endif
9797

ext/hash/hash_arginfo.h

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

ext/hash/tests/mhash_003.phpt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,56 +35,56 @@ foreach ($supported_hash_al as $hash=>$wanted) {
3535
}
3636
?>
3737
--EXPECTF--
38-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
38+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
3939
MHASH_MD5
4040
ok
4141

4242

43-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
43+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
4444
MHASH_SHA1
4545
ok
4646

4747

48-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
48+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
4949
MHASH_HAVAL256
5050
ok
5151

5252

53-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
53+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
5454
MHASH_HAVAL224
5555
ok
5656

5757

58-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
58+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
5959
MHASH_HAVAL192
6060
ok
6161

6262

63-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
63+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
6464
MHASH_HAVAL160
6565
ok
6666

6767

68-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
68+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
6969
MHASH_RIPEMD160
7070
ok
7171

7272

73-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
73+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
7474
MHASH_GOST
7575
ok
7676

7777

78-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
78+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
7979
MHASH_TIGER
8080
ok
8181

8282

83-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
83+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
8484
MHASH_CRC32
8585
ok
8686

8787

88-
Deprecated: Function mhash_keygen_s2k() is deprecated in %s on line %d
88+
Deprecated: Function mhash_keygen_s2k() is deprecated since 8.1 in %s on line %d
8989
MHASH_CRC32B
9090
ok

0 commit comments

Comments
 (0)