xref: /PHP-8.0/ext/hash/tests/hash_algos.phpt (revision b5c7a83d)
1--TEST--
2Hash: hash_algos() function : basic functionality
3--FILE--
4<?php
5
6echo "*** Testing hash_algos() : basic functionality ***\n";
7var_dump(hash_algos());
8
9?>
10--EXPECTF--
11*** Testing hash_algos() : basic functionality ***
12array(53) {
13  [%d]=>
14  string(3) "md2"
15  [%d]=>
16  string(3) "md4"
17  [%d]=>
18  string(3) "md5"
19  [%d]=>
20  string(4) "sha1"
21  [%d]=>
22  string(6) "sha224"
23  [%d]=>
24  string(6) "sha256"
25  [%d]=>
26  string(6) "sha384"
27  [%d]=>
28  string(10) "sha512/224"
29  [%d]=>
30  string(10) "sha512/256"
31  [%d]=>
32  string(6) "sha512"
33  [%d]=>
34  string(8) "sha3-224"
35  [%d]=>
36  string(8) "sha3-256"
37  [%d]=>
38  string(8) "sha3-384"
39  [%d]=>
40  string(8) "sha3-512"
41  [%d]=>
42  string(9) "ripemd128"
43  [%d]=>
44  string(9) "ripemd160"
45  [%d]=>
46  string(9) "ripemd256"
47  [%d]=>
48  string(9) "ripemd320"
49  [%d]=>
50  string(9) "whirlpool"
51  [%d]=>
52  string(10) "tiger128,3"
53  [%d]=>
54  string(10) "tiger160,3"
55  [%d]=>
56  string(10) "tiger192,3"
57  [%d]=>
58  string(10) "tiger128,4"
59  [%d]=>
60  string(10) "tiger160,4"
61  [%d]=>
62  string(10) "tiger192,4"
63  [%d]=>
64  string(6) "snefru"
65  [%d]=>
66  string(9) "snefru256"
67  [%d]=>
68  string(4) "gost"
69  [%d]=>
70  string(11) "gost-crypto"
71  [%d]=>
72  string(7) "adler32"
73  [%d]=>
74  string(5) "crc32"
75  [%d]=>
76  string(6) "crc32b"
77  [%d]=>
78  string(6) "crc32c"
79  [%d]=>
80  string(6) "fnv132"
81  [%d]=>
82  string(7) "fnv1a32"
83  [%d]=>
84  string(6) "fnv164"
85  [%d]=>
86  string(7) "fnv1a64"
87  [%d]=>
88  string(5) "joaat"
89  [%d]=>
90  string(10) "haval128,3"
91  [%d]=>
92  string(10) "haval160,3"
93  [%d]=>
94  string(10) "haval192,3"
95  [%d]=>
96  string(10) "haval224,3"
97  [%d]=>
98  string(10) "haval256,3"
99  [%d]=>
100  string(10) "haval128,4"
101  [%d]=>
102  string(10) "haval160,4"
103  [%d]=>
104  string(10) "haval192,4"
105  [%d]=>
106  string(10) "haval224,4"
107  [%d]=>
108  string(10) "haval256,4"
109  [%d]=>
110  string(10) "haval128,5"
111  [%d]=>
112  string(10) "haval160,5"
113  [%d]=>
114  string(10) "haval192,5"
115  [%d]=>
116  string(10) "haval224,5"
117  [%d]=>
118  string(10) "haval256,5"
119}
120