summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-01-28 19:01:20 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2021-01-28 23:25:59 +0100
commit49ef8bc0267d551ea3a8698213a82f0b7eb0a297 (patch)
tree61ff703fbef14df9175690e9791de2b05d8943bf
parentb23a4256a62dbc789dc228578e153dfbff3c8324 (diff)
downloadphp-git-49ef8bc0267d551ea3a8698213a82f0b7eb0a297.tar.gz
Add missing stub for SodiumException
Closes GH-6649.
-rw-r--r--ext/sodium/libsodium.stub.php2
-rw-r--r--ext/sodium/libsodium_arginfo.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/ext/sodium/libsodium.stub.php b/ext/sodium/libsodium.stub.php
index b2bfd35730..e8f7b54ca2 100644
--- a/ext/sodium/libsodium.stub.php
+++ b/ext/sodium/libsodium.stub.php
@@ -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 {}
diff --git a/ext/sodium/libsodium_arginfo.h b/ext/sodium/libsodium_arginfo.h
index 9b0d4b0f1d..07b78aba74 100644
--- a/ext/sodium/libsodium_arginfo.h
+++ b/ext/sodium/libsodium_arginfo.h
@@ -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()
@@ -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
+};