]> granicus.if.org Git - php/commitdiff
Add missing stub for SodiumException
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 28 Jan 2021 18:01:20 +0000 (19:01 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 28 Jan 2021 22:25:59 +0000 (23:25 +0100)
Closes GH-6649.

ext/sodium/libsodium.stub.php
ext/sodium/libsodium_arginfo.h

index b2bfd357309b53d1afd9255841fed362d87c760c..e8f7b54ca2947cbb04c6a129c1405dbdd8b9163c 100644 (file)
@@ -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 {}
index 9b0d4b0f1d361bac756701a88186284564668760..07b78aba74ca6af3cbc30796318c06bc23ceaa4a 100644 (file)
@@ -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
+};