diff options
author | Sara Golemon <pollita@php.net> | 2016-12-30 08:54:55 -0800 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2016-12-30 09:12:17 -0800 |
commit | 54c13295a6599c39a97fba98bf9fdf69b1706429 (patch) | |
tree | f6616be58c0b4a465a0094e9c21ce1edf56bbdff /ext/standard/formatted_print.c | |
parent | c5cc583473ad6dab3712cd4589357a9e90f8d42a (diff) | |
download | php-git-54c13295a6599c39a97fba98bf9fdf69b1706429.tar.gz |
Use new param API in standard
Diffstat (limited to 'ext/standard/formatted_print.c')
-rw-r--r-- | ext/standard/formatted_print.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index 3e3d59ca15..9058f316fa 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -727,9 +727,10 @@ PHP_FUNCTION(fprintf) WRONG_PARAM_COUNT; } - if (zend_parse_parameters(1, "r", &arg1) == FAILURE) { - RETURN_FALSE; - } + ZEND_PARSE_PARAMETERS_START(1, -1) + Z_PARAM_RESOURCE(arg1) + /* php_formatted_print does its own zpp for extra args */ + ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); php_stream_from_zval(stream, arg1); @@ -756,9 +757,10 @@ PHP_FUNCTION(vfprintf) WRONG_PARAM_COUNT; } - if (zend_parse_parameters(1, "r", &arg1) == FAILURE) { - RETURN_FALSE; - } + ZEND_PARSE_PARAMETERS_START(1, -1) + Z_PARAM_RESOURCE(arg1) + /* php_formatted_print does its own zpp for extra args */ + ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); php_stream_from_zval(stream, arg1); |