Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PHP NEWS

- hash:
. Implemented FR #68109 (Add MurmurHash V3). (Anatol, Michael)
. Implemented xxHash support. (Anatol)
. Implemented FR #73385 (Add xxHash support). (Anatol)

- MySQLi:
. Fixed bug #70372 (Emulate mysqli_fetch_all() for libmysqlclient). (Nikita)
Expand Down
10 changes: 10 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@ PHP 8.1 UPGRADE NOTES
echo $h, "\n";
```

Secret usage is supported through passing the `secret` key in the `$options` array, too:

```php
$h = hash("xxh3", $data, options: ["secret" => "at least 136 bytes long secret here"]);
echo $h, "\n";
```

Note, that the quality of the custom secret is crucial for the quality of the resulting hash. It is
highly recommended for the secret to use the best possible entropy.

- PDO SQLite:
. SQLite's "file:" DSN syntax is now supported, which allows specifying
additional flags. This feature is not available if open_basedir is set.
Expand Down
5 changes: 2 additions & 3 deletions UPGRADING.INTERNALS
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ PHP 8.1 INTERNALS UPGRADE NOTES
a. ext/hash
- The init signatures are extended with an additional `HashTable*`
argument. The passed HT is to contain the algorithm specific
configuration. If the an algorithm doesn't make use of any
additional configuration, the argument is to be marked with
ZEND_ATTRIBUTE_UNUSED.
configuration. If an algorithm doesn't make use of any additional
configuration, the argument is to be marked with ZEND_ATTRIBUTE_UNUSED.

b. ext/pdo
- The "preparer" callback now accepts a zend_string* instead of
Expand Down