Skip to content

Commit 042e0d8

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Add missing stub for SodiumException
2 parents 88c3394 + 49ef8bc commit 042e0d8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ext/sodium/libsodium.stub.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,5 @@ function sodium_base642bin(string $string, int $id, string $ignore = ""): strin
186186

187187
/** @alias sodium_crypto_box_publickey_from_secretkey */
188188
function sodium_crypto_scalarmult_base(string $secret_key): string {}
189+
190+
class SodiumException extends Exception {}

ext/sodium/libsodium_arginfo.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 60259c3fefaf8ba8ac22bf80147c3525387ec763 */
2+
* Stub hash: b34401e98646f1e85a8dd292477cac68c6e4ac97 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_crypto_aead_aes256gcm_is_available, 0, 0, _IS_BOOL, 0)
55
ZEND_END_ARG_INFO()
@@ -661,3 +661,8 @@ static const zend_function_entry ext_functions[] = {
661661
ZEND_FALIAS(sodium_crypto_scalarmult_base, sodium_crypto_box_publickey_from_secretkey, arginfo_sodium_crypto_scalarmult_base)
662662
ZEND_FE_END
663663
};
664+
665+
666+
static const zend_function_entry class_SodiumException_methods[] = {
667+
ZEND_FE_END
668+
};

0 commit comments

Comments
 (0)