diff options
author | James Titcumb <james@asgrim.com> | 2018-09-29 19:14:53 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-09-29 21:19:42 +0200 |
commit | 950c338f8012f8ca4a2928cc833fb7efa05a905e (patch) | |
tree | 4c440a46a224f362d4dbf2a830dc2a5f31477266 /ext | |
parent | 8e7dfc6ddf97db89871cc296ea68a31c72312121 (diff) | |
download | php-git-950c338f8012f8ca4a2928cc833fb7efa05a905e.tar.gz |
Fix reflection arguments for sodium_memzero function
Diffstat (limited to 'ext')
-rw-r--r-- | ext/sodium/libsodium.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/sodium/libsodium.c b/ext/sodium/libsodium.c index 7b5e791d58..e168aad105 100644 --- a/ext/sodium/libsodium.c +++ b/ext/sodium/libsodium.c @@ -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) @@ -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) |