summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2021-01-09 21:50:46 +0100
committerAnatol Belski <ab@php.net>2021-01-09 21:50:46 +0100
commit7703b854281b8e328088406d15eac3fccfb7a495 (patch)
treef26fd5a0041788a2d7e516b7711eed1079977deb /UPGRADING
parent2cee1be6d14af1f088c253961e856d1b4af250d9 (diff)
downloadphp-git-7703b854281b8e328088406d15eac3fccfb7a495.tar.gz
UPGRADING: Add xxHash notes [ci skip]
Signed-off-by: Anatol Belski <ab@php.net>
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING14
1 files changed, 14 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index f3d155d4f1..f30c0fb6bf 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -103,6 +103,20 @@ PHP 8.1 UPGRADE NOTES
A valid seed value is within the range from 0 to the plaform defined UINT_MAX, usually 4294967295.
+ . Added xxHash. The implementation brings in the following arguments
+
+ - xxh32, 32-bit hash
+ - xxh64, 64-bit hash
+ - xxh3, 64-bit hash
+ - xxh128, 128-bit hash
+
+ The initial hash state can be passed through the `seed` key in the `$options` array, for example:
+
+ ```php
+ $h = hash("xxh3", $data, options: ["seed" => 42]);
+ echo $h, "\n";
+ ```
+
========================================
3. Changes in SAPI modules
========================================