com php-src: ext/sodium: the second parameter of sodium_hex 2bin() is optional: ext/sodium/libsodium.c

From: Date: Tue, 29 Aug 2017 17:25:01 +0000
Subject: com php-src: ext/sodium: the second parameter of sodium_hex 2bin() is optional: ext/sodium/libsodium.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99193@lists.php.net to get a copy of this message
Commit: 04c87ea815e20dbfabfa5e33e6f2de11664f1cfc Author: Frank Denis <github@pureftpd.org> Tue, 29 Aug 2017 19:25:01 +0200 Parents: b1a7885dd70014d8bddd650cb04d6b63a25833d7 Branches: PHP-7.2 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=04c87ea815e20dbfabfa5e33e6f2de11664f1cfc Log: ext/sodium: the second parameter of sodium_hex2bin() is optional Changed paths: M ext/sodium/libsodium.c Diff: diff --git a/ext/sodium/libsodium.c b/ext/sodium/libsodium.c index d733052..fec6e6c 100644 --- a/ext/sodium/libsodium.c +++ b/ext/sodium/libsodium.c @@ -54,6 +54,12 @@ ZEND_BEGIN_ARG_INFO_EX(AI_TwoStrings, 0, 0, 2) ZEND_ARG_INFO(0, string_2) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(AI_StringAndMaybeString, 0, 0, 1) + ZEND_ARG_INFO(0, string_1) + /* optional */ + ZEND_ARG_INFO(0, string_2) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(AI_StringRefAndString, 0, 0, 2) ZEND_ARG_INFO(1, string_1) ZEND_ARG_INFO(0, string_2) @@ -264,7 +270,7 @@ const zend_function_entry sodium_functions[] = { (SODIUM_LIBRARY_VERSION_MAJOR == 7 && SODIUM_LIBRARY_VERSION_MINOR >= 6) PHP_FE(sodium_compare, AI_TwoStrings) #endif - PHP_FE(sodium_hex2bin, AI_TwoStrings) + PHP_FE(sodium_hex2bin, AI_AI_StringAndMaybeString) PHP_FE(sodium_increment, AI_StringRef) PHP_FE(sodium_add, AI_StringRefAndString) PHP_FE(sodium_memcmp, AI_TwoStrings)

« previous php.cvs (#99193) next »