From 7703b854281b8e328088406d15eac3fccfb7a495 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 9 Jan 2021 21:50:46 +0100 Subject: UPGRADING: Add xxHash notes [ci skip] Signed-off-by: Anatol Belski --- UPGRADING | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'UPGRADING') 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 ======================================== -- cgit v1.2.1