diff options
author | Sara Golemon <pollita@php.net> | 2016-12-30 17:09:35 -0800 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2016-12-30 17:28:55 -0800 |
commit | a23f08a33c8e47a6e1617a356c1a8bf3c83d3b5b (patch) | |
tree | e75786e95b26cd7f3599a07eb63d5569808a9f00 /ext/standard/uuencode.c | |
parent | 331dcf08df14177c79eaf05acd087168564ec9dd (diff) | |
download | php-git-a23f08a33c8e47a6e1617a356c1a8bf3c83d3b5b.tar.gz |
Use new param API in standard
Diffstat (limited to 'ext/standard/uuencode.c')
-rw-r--r-- | ext/standard/uuencode.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/standard/uuencode.c b/ext/standard/uuencode.c index 787569e430..a99a98d35f 100644 --- a/ext/standard/uuencode.c +++ b/ext/standard/uuencode.c @@ -204,9 +204,10 @@ PHP_FUNCTION(convert_uuencode) { zend_string *src; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &src) == FAILURE || ZSTR_LEN(src) < 1) { - RETURN_FALSE; - } + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STR(src) + ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); + if (ZSTR_LEN(src) < 1) { RETURN_FALSE; } RETURN_STR(php_uuencode(ZSTR_VAL(src), ZSTR_LEN(src))); } @@ -219,9 +220,10 @@ PHP_FUNCTION(convert_uudecode) zend_string *src; zend_string *dest; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &src) == FAILURE || ZSTR_LEN(src) < 1) { - RETURN_FALSE; - } + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STR(src) + ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); + if (ZSTR_LEN(src) < 1) { RETURN_FALSE; } if ((dest = php_uudecode(ZSTR_VAL(src), ZSTR_LEN(src))) == NULL) { php_error_docref(NULL, E_WARNING, "The given parameter is not a valid uuencoded string"); |