diff options
author | Anatol Belski <ab@php.net> | 2021-01-09 21:50:46 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2021-01-09 21:50:46 +0100 |
commit | 7703b854281b8e328088406d15eac3fccfb7a495 (patch) | |
tree | f26fd5a0041788a2d7e516b7711eed1079977deb /UPGRADING | |
parent | 2cee1be6d14af1f088c253961e856d1b4af250d9 (diff) | |
download | php-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-- | UPGRADING | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 ======================================== |