Skip to content

Commit 7703b85

Browse files
committed
UPGRADING: Add xxHash notes [ci skip]
Signed-off-by: Anatol Belski <ab@php.net>
1 parent 2cee1be commit 7703b85

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

UPGRADING

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,20 @@ PHP 8.1 UPGRADE NOTES
103103

104104
A valid seed value is within the range from 0 to the plaform defined UINT_MAX, usually 4294967295.
105105

106+
. Added xxHash. The implementation brings in the following arguments
107+
108+
- xxh32, 32-bit hash
109+
- xxh64, 64-bit hash
110+
- xxh3, 64-bit hash
111+
- xxh128, 128-bit hash
112+
113+
The initial hash state can be passed through the `seed` key in the `$options` array, for example:
114+
115+
```php
116+
$h = hash("xxh3", $data, options: ["seed" => 42]);
117+
echo $h, "\n";
118+
```
119+
106120
========================================
107121
3. Changes in SAPI modules
108122
========================================

0 commit comments

Comments
 (0)