Skip to content

Commit 03bb26a

Browse files
authored
PHP 8.1 | Update hash_algos() documentation
> **MurmurHash3** > > Added support for MurmurHash3 with streaming support. The following variants are implemented: > * murmur3a, 32-bit hash > * murmur3c, 128-bit hash for x86 > * murmur3f, 128-bit hash for x64 > > **xxHash** > > Added support for xxHash. The following variants are implemented: > * xxh32, 32-bit hash > * xxh64, 64-bit hash > * xxh3, 64-bit hash > * xxh128, 128-bit hash Refs: * https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.hash.murmurhash3 * php/php-src#6059 * php/php-src@72e91e9 * https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.hash.xxhash * php/php-src#6524 * php/php-src@23590f7 Co-authored-by: jrfnl <jrfnl@users.noreply.github.com> Closes GH-1451.
1 parent 553fabc commit 03bb26a

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

reference/hash/functions/hash-algos.xml

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
</row>
3939
</thead>
4040
<tbody>
41+
<row>
42+
<entry>8.1.0</entry>
43+
<entry>
44+
Support for MurmurHash3 and xxHash algorithms has been added.
45+
</entry>
46+
</row>
4147
<row>
4248
<entry>7.4.0</entry>
4349
<entry>
@@ -56,14 +62,14 @@
5662
</informaltable>
5763
</para>
5864
</refsect1><!-- }}} -->
59-
65+
6066
<refsect1 role="examples">
6167
&reftitle.examples;
6268
<para>
6369
<example>
6470
<title><function>hash_algos</function> example</title>
6571
<para>
66-
As of PHP 7.4.0, <function>hash_algos</function> will return the
72+
As of PHP 8.1.0, <function>hash_algos</function> will return the
6773
following list of algorithm names.
6874
</para>
6975
<programlisting role="php">
@@ -116,21 +122,28 @@ Array
116122
[35] => fnv164
117123
[36] => fnv1a64
118124
[37] => joaat
119-
[38] => haval128,3
120-
[39] => haval160,3
121-
[40] => haval192,3
122-
[41] => haval224,3
123-
[42] => haval256,3
124-
[43] => haval128,4
125-
[44] => haval160,4
126-
[45] => haval192,4
127-
[46] => haval224,4
128-
[47] => haval256,4
129-
[48] => haval128,5
130-
[49] => haval160,5
131-
[50] => haval192,5
132-
[51] => haval224,5
133-
[52] => haval256,5
125+
[38] => murmur3a
126+
[39] => murmur3c
127+
[40] => murmur3f
128+
[41] => xxh32
129+
[42] => xxh64
130+
[43] => xxh3
131+
[44] => xxh128
132+
[45] => haval128,3
133+
[46] => haval160,3
134+
[47] => haval192,3
135+
[48] => haval224,3
136+
[49] => haval256,3
137+
[50] => haval128,4
138+
[51] => haval160,4
139+
[52] => haval192,4
140+
[53] => haval224,4
141+
[54] => haval256,4
142+
[55] => haval128,5
143+
[56] => haval160,5
144+
[57] => haval192,5
145+
[58] => haval224,5
146+
[59] => haval256,5
134147
)
135148
]]>
136149
</screen>

0 commit comments

Comments
 (0)