Skip to content

Commit

Permalink
Fix a few places where ZPP throw got reverted to ZPP
Browse files Browse the repository at this point in the history
  • Loading branch information
SammyK authored and nikic committed Sep 5, 2017
1 parent f1fd11f commit a8862d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/sodium/libsodium.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a8862d2

Please sign in to comment.