Skip to content

Commit

Permalink
Fix reflection arguments for sodium_memzero function
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim authored and nikic committed Sep 29, 2018
1 parent 8e7dfc6 commit 950c338
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ext/sodium/libsodium.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ static zend_class_entry *sodium_exception_ce;
ZEND_BEGIN_ARG_INFO_EX(AI_None, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(AI_FirstArgByReferenceSecondLength, 0, 0, 2)
ZEND_BEGIN_ARG_INFO_EX(AI_FirstArgByReference, 0, 0, 1)
ZEND_ARG_INFO(1, reference)
ZEND_ARG_INFO(0, length)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(AI_String, 0, 0, 1)
Expand Down Expand Up @@ -339,7 +338,7 @@ const zend_function_entry sodium_functions[] = {
PHP_FE(sodium_compare, AI_TwoStrings)
PHP_FE(sodium_increment, AI_StringRef)
PHP_FE(sodium_memcmp, AI_TwoStrings)
PHP_FE(sodium_memzero, AI_FirstArgByReferenceSecondLength)
PHP_FE(sodium_memzero, AI_FirstArgByReference)
PHP_FE(sodium_pad, AI_StringAndLength)
PHP_FE(sodium_unpad, AI_StringAndLength)

Expand Down

0 comments on commit 950c338

Please sign in to comment.