File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,16 @@ PHP 8.1 UPGRADE NOTES
166
166
echo $h, "\n";
167
167
```
168
168
169
+ Secret usage is supported through passing the `secret` key in the `$options` array, too:
170
+
171
+ ```php
172
+ $h = hash("xxh3", $data, options: ["secret" => "at least 136 bytes long secret here"]);
173
+ echo $h, "\n";
174
+ ```
175
+
176
+ Note, that the quality of the custom secret is crucial for the quality of the resulting hash. It is
177
+ highly recommended for the secret to use the best possible entropy.
178
+
169
179
- PDO SQLite:
170
180
. SQLite's "file:" DSN syntax is now supported, which allows specifying
171
181
additional flags. This feature is not available if open_basedir is set.
Original file line number Diff line number Diff line change @@ -22,9 +22,8 @@ PHP 8.1 INTERNALS UPGRADE NOTES
22
22
a. ext/hash
23
23
- The init signatures are extended with an additional `HashTable*`
24
24
argument. The passed HT is to contain the algorithm specific
25
- configuration. If the an algorithm doesn't make use of any
26
- additional configuration, the argument is to be marked with
27
- ZEND_ATTRIBUTE_UNUSED.
25
+ configuration. If an algorithm doesn't make use of any additional
26
+ configuration, the argument is to be marked with ZEND_ATTRIBUTE_UNUSED.
28
27
29
28
b. ext/pdo
30
29
- The "preparer" callback now accepts a zend_string* instead of
You can’t perform that action at this time.
0 commit comments