com php-src: Fixed returning void instead of NULL: ext/standard /formatted_print.c
| From: | Dmitry Stogov | Date: | Tue, 05 May 2015 20:50:50 +0000 |
| Subject: | com php-src: Fixed returning void instead of NULL: ext/standard /formatted_print.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86611@lists.php.net to get a copy of this message | ||
Commit: 63282d3321044681e880a997a6360d4b99a07d4f
Author: Dmitry Stogov <dmitry@zend.com> Tue, 5 May 2015 23:50:50 +0300
Parents: c0c68a94068dcaa8d862b0bfb3dabb5223cb196a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=63282d3321044681e880a997a6360d4b99a07d4f
Log:
Fixed returning void instead of NULL
Changed paths:
M ext/standard/formatted_print.c
Diff:
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c
index 15afba3..1c381cd 100644
--- a/ext/standard/formatted_print.c
+++ b/ext/standard/formatted_print.c
@@ -397,12 +397,12 @@ php_formatted_print(zend_execute_data *execute_data, int use_array, int
format_o
#ifndef FAST_ZPP
if (zend_parse_parameters(ZEND_NUM_ARGS(), "+", &args, &argc) == FAILURE) {
- return;
+ return NULL;
}
#else
ZEND_PARSE_PARAMETERS_START(1, -1)
Z_PARAM_VARIADIC('+', args, argc)
- ZEND_PARSE_PARAMETERS_END();
+ ZEND_PARSE_PARAMETERS_END_EX(return NULL);
#endif
/* verify the number of args */