From 58e1e6b9a371d89781f0e0bd66a35aec8d6cd96f Mon Sep 17 00:00:00 2001 From: 50bhan Date: Tue, 7 Sep 2021 01:44:35 +0430 Subject: [PATCH] Add an optional $options argument to hash functions for PHP 8.1 --- dictionaries/CallMap.php | 6 +++--- dictionaries/CallMap_81_delta.php | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index 5295687a9..3b74abd77 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -4347,17 +4347,17 @@ return [ 'HaruPage::stroke' => ['bool', 'close_path='=>'bool'], 'HaruPage::textOut' => ['bool', 'x'=>'float', 'y'=>'float', 'text'=>'string'], 'HaruPage::textRect' => ['bool', 'left'=>'float', 'top'=>'float', 'right'=>'float', 'bottom'=>'float', 'text'=>'string', 'align='=>'int'], -'hash' => ['string|false', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool'], +'hash' => ['string|false', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool', 'options='=>'array'], 'hash_algos' => ['list'], 'hash_copy' => ['HashContext', 'context'=>'HashContext'], 'hash_equals' => ['bool', 'known_string'=>'string', 'user_string'=>'string'], -'hash_file' => ['string|false', 'algo'=>'string', 'filename'=>'string', 'binary='=>'bool'], +'hash_file' => ['string|false', 'algo'=>'string', 'filename'=>'string', 'binary='=>'bool', 'options='=>'array'], 'hash_final' => ['string', 'context'=>'HashContext', 'binary='=>'bool'], 'hash_hkdf' => ['string|false', 'algo'=>'string', 'key'=>'string', 'length='=>'int', 'info='=>'string', 'salt='=>'string'], 'hash_hmac' => ['string|false', 'algo'=>'string', 'data'=>'string', 'key'=>'string', 'binary='=>'bool'], 'hash_hmac_algos' => ['list'], 'hash_hmac_file' => ['string|false', 'algo'=>'string', 'data'=>'string', 'key'=>'string', 'binary='=>'bool'], -'hash_init' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string'], +'hash_init' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string', 'options='=>'array'], 'hash_pbkdf2' => ['string', 'algo'=>'string', 'password'=>'string', 'salt'=>'string', 'iterations'=>'int', 'length='=>'int', 'binary='=>'bool'], 'hash_update' => ['bool', 'context'=>'HashContext', 'data'=>'string'], 'hash_update_file' => ['bool', 'context'=>'HashContext', 'filename'=>'string', 'stream_context='=>'?resource'], diff --git a/dictionaries/CallMap_81_delta.php b/dictionaries/CallMap_81_delta.php index 61b813cbe..48f9c241e 100644 --- a/dictionaries/CallMap_81_delta.php +++ b/dictionaries/CallMap_81_delta.php @@ -166,6 +166,18 @@ return [ 'old' => ['mixed|false', 'ftp' => 'resource', 'option' => 'int'], 'new' => ['mixed|false', 'ftp' => 'FTP\Connection', 'option' => 'int'], ], + 'hash' => [ + 'old' => ['string|false', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool'], + 'new' => ['string|false', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool', 'options='=>'array'], + ], + 'hash_file' => [ + 'old' => ['string|false', 'algo'=>'string', 'filename'=>'string', 'binary='=>'bool'], + 'new' => ['string|false', 'algo'=>'string', 'filename'=>'string', 'binary='=>'bool', 'options='=>'array'], + ], + 'hash_init' => [ + 'old' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string'], + 'new' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string', 'options='=>'array'], + ], 'mysqli_execute' => [ 'old' => ['bool', 'statement' => 'mysqli_stmt'], 'new' => ['bool', 'statement' => 'mysqli_stmt', 'params=' => 'list|null'],