Skip to content

Commit

Permalink
Add missing stub for SodiumException
Browse files Browse the repository at this point in the history
Closes GH-6649.
  • Loading branch information
cmb69 committed Jan 28, 2021
1 parent b23a425 commit 49ef8bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ext/sodium/libsodium.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,5 @@ function sodium_base642bin(string $string, int $id, string $ignore = ""): strin

/** @alias sodium_crypto_box_publickey_from_secretkey */
function sodium_crypto_scalarmult_base(string $secret_key): string {}

class SodiumException extends Exception {}
7 changes: 6 additions & 1 deletion ext/sodium/libsodium_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 60259c3fefaf8ba8ac22bf80147c3525387ec763 */
* Stub hash: b34401e98646f1e85a8dd292477cac68c6e4ac97 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_crypto_aead_aes256gcm_is_available, 0, 0, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
Expand Down Expand Up @@ -661,3 +661,8 @@ static const zend_function_entry ext_functions[] = {
ZEND_FALIAS(sodium_crypto_scalarmult_base, sodium_crypto_box_publickey_from_secretkey, arginfo_sodium_crypto_scalarmult_base)
ZEND_FE_END
};


static const zend_function_entry class_SodiumException_methods[] = {
ZEND_FE_END
};

0 comments on commit 49ef8bc

Please sign in to comment.