diff options
Diffstat (limited to 'ext/standard/formatted_print.c')
-rw-r--r-- | ext/standard/formatted_print.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index 4ee68adefa..fc35eda5ae 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -662,7 +662,7 @@ php_formatted_print_get_array(zval *array, int *argc) } /* }}} */ -/* {{{ proto string sprintf(string format [, mixed arg1 [, mixed ...]]) +/* {{{ proto string|false sprintf(string format [, mixed arg1 [, mixed ...]]) Return a formatted string */ PHP_FUNCTION(user_sprintf) { @@ -673,7 +673,7 @@ PHP_FUNCTION(user_sprintf) ZEND_PARSE_PARAMETERS_START(1, -1) Z_PARAM_ZVAL(format) Z_PARAM_VARIADIC('*', args, argc) - ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); + ZEND_PARSE_PARAMETERS_END(); result = php_formatted_print(format, args, argc); if (result == NULL) { @@ -683,7 +683,7 @@ PHP_FUNCTION(user_sprintf) } /* }}} */ -/* {{{ proto string vsprintf(string format, array args) +/* {{{ proto string|false vsprintf(string format, array args) Return a formatted string */ PHP_FUNCTION(vsprintf) { @@ -694,7 +694,7 @@ PHP_FUNCTION(vsprintf) ZEND_PARSE_PARAMETERS_START(2, 2) Z_PARAM_ZVAL(format) Z_PARAM_ZVAL(array) - ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); + ZEND_PARSE_PARAMETERS_END(); args = php_formatted_print_get_array(array, &argc); @@ -707,7 +707,7 @@ PHP_FUNCTION(vsprintf) } /* }}} */ -/* {{{ proto int printf(string format [, mixed arg1 [, mixed ...]]) +/* {{{ proto int|false printf(string format [, mixed arg1 [, mixed ...]]) Output a formatted string */ PHP_FUNCTION(user_printf) { @@ -719,7 +719,7 @@ PHP_FUNCTION(user_printf) ZEND_PARSE_PARAMETERS_START(1, -1) Z_PARAM_ZVAL(format) Z_PARAM_VARIADIC('*', args, argc) - ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); + ZEND_PARSE_PARAMETERS_END(); result = php_formatted_print(format, args, argc); if (result == NULL) { @@ -731,7 +731,7 @@ PHP_FUNCTION(user_printf) } /* }}} */ -/* {{{ proto int vprintf(string format, array args) +/* {{{ proto int|false vprintf(string format, array args) Output a formatted string */ PHP_FUNCTION(vprintf) { @@ -743,7 +743,7 @@ PHP_FUNCTION(vprintf) ZEND_PARSE_PARAMETERS_START(2, 2) Z_PARAM_ZVAL(format) Z_PARAM_ZVAL(array) - ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); + ZEND_PARSE_PARAMETERS_END(); args = php_formatted_print_get_array(array, &argc); @@ -758,7 +758,7 @@ PHP_FUNCTION(vprintf) } /* }}} */ -/* {{{ proto int fprintf(resource stream, string format [, mixed arg1 [, mixed ...]]) +/* {{{ proto int|false fprintf(resource stream, string format [, mixed arg1 [, mixed ...]]) Output a formatted string into a stream */ PHP_FUNCTION(fprintf) { @@ -775,7 +775,7 @@ PHP_FUNCTION(fprintf) Z_PARAM_RESOURCE(arg1) Z_PARAM_ZVAL(format) Z_PARAM_VARIADIC('*', args, argc) - ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); + ZEND_PARSE_PARAMETERS_END(); php_stream_from_zval(stream, arg1); @@ -791,7 +791,7 @@ PHP_FUNCTION(fprintf) } /* }}} */ -/* {{{ proto int vfprintf(resource stream, string format, array args) +/* {{{ proto int|false vfprintf(resource stream, string format, array args) Output a formatted string into a stream */ PHP_FUNCTION(vfprintf) { @@ -808,7 +808,7 @@ PHP_FUNCTION(vfprintf) Z_PARAM_RESOURCE(arg1) Z_PARAM_ZVAL(format) Z_PARAM_ZVAL(array) - ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); + ZEND_PARSE_PARAMETERS_END(); php_stream_from_zval(stream, arg1); |