com php-src: Fix a few places where ZPP throw got reverted to ZPP: ext/sodium/libsodium.c
| From: | Nikita Popov | Date: | Tue, 05 Sep 2017 14:39:24 +0000 |
| Subject: | com php-src: Fix a few places where ZPP throw got reverted to ZPP: ext/sodium/libsodium.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99268@lists.php.net to get a copy of this message | ||
Commit: a8862d215c57c20ee9c4b061e7c352da03ef8d75
Author: Sammy Kaye Powers <sammyk@sammykmedia.com> Thu, 31 Aug 2017 16:55:40 -0500
Committer: Nikita Popov <nikita.ppv@gmail.com> Tue, 5 Sep 2017 16:39:24 +0200
Parents: f1fd11f4ca72093222862ccc87d2b32d8be67480
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a8862d215c57c20ee9c4b061e7c352da03ef8d75
Log:
Fix a few places where ZPP throw got reverted to ZPP
Changed paths:
M ext/sodium/libsodium.c
Diff:
diff --git a/ext/sodium/libsodium.c b/ext/sodium/libsodium.c
index 35a3ddf..66eb1f4 100644
--- a/ext/sodium/libsodium.c
+++ b/ext/sodium/libsodium.c
@@ -3075,7 +3075,7 @@ PHP_FUNCTION(sodium_crypto_kdf_derive_from_key)
size_t ctx_len;
size_t key_len;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "llss",
+ if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "llss",
&subkey_len,
&subkey_id,
&ctx, &ctx_len,
@@ -3143,7 +3143,7 @@ PHP_FUNCTION(sodium_pad)
size_t xpadlen;
size_t xpadded_len;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl",
+ if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "sl",
&unpadded, &unpadded_len, &blocksize) == FAILURE) {
sodium_remove_param_values_from_backtrace(EG(exception));
return;
@@ -3212,7 +3212,7 @@ PHP_FUNCTION(sodium_unpad)
zend_long blocksize;
int ret;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl",
+ if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "sl",
&padded, &padded_len, &blocksize) == FAILURE) {
sodium_remove_param_values_from_backtrace(EG(exception));
return;