diff options
author | Sara Golemon <pollita@php.net> | 2016-12-30 12:32:48 -0800 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2016-12-30 12:56:21 -0800 |
commit | 6f3945a9f1d2410db94f17fb29f405502cf79663 (patch) | |
tree | 557d3293ec948ab980ca835e014129dcea28d5dc /ext/standard/crypt.c | |
parent | c9a42b58a720e47cf98ea25e14b8a0e1d1053770 (diff) | |
download | php-git-6f3945a9f1d2410db94f17fb29f405502cf79663.tar.gz |
Use new param API in standard
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r-- | ext/standard/crypt.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index f2f778e764..a6a290057d 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -245,9 +245,11 @@ PHP_FUNCTION(crypt) size_t str_len, salt_in_len = 0; zend_string *result; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s", &str, &str_len, &salt_in, &salt_in_len) == FAILURE) { - return; - } + ZEND_PARSE_PARAMETERS_START(1, 2) + Z_PARAM_STRING(str, str_len) + Z_PARAM_OPTIONAL + Z_PARAM_STRING(salt_in, salt_in_len) + ZEND_PARSE_PARAMETERS_END(); salt[0] = salt[PHP_MAX_SALT_LEN] = '\0'; |