From: Kalle Sommer Nielsen Date: Sun, 23 Jul 2017 06:48:06 +0000 (+0200) Subject: FAST_ZPP variant of zend_parse_parameters_none(), ZEND_PARSE_PARAMETERS_NONE() X-Git-Tag: php-7.3.0alpha1~1831 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67be32ced9a7ec23280aaf5409a819f13ff62e90;p=php FAST_ZPP variant of zend_parse_parameters_none(), ZEND_PARSE_PARAMETERS_NONE() --- diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 865f5dd291..bcb520f4b2 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -762,6 +762,10 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_error(zend_bool throw_ #define ZEND_PARSE_PARAMETERS_START(min_num_args, max_num_args) \ ZEND_PARSE_PARAMETERS_START_EX(0, min_num_args, max_num_args) +#define ZEND_PARSE_PARAMETERS_NONE() \ + ZEND_PARSE_PARAMETERS_START(0, 0) \ + ZEND_PARSE_PARAMETERS_END() + #define ZEND_PARSE_PARAMETERS_END_EX(failure) \ } while (0); \ if (UNEXPECTED(error_code != ZPP_ERROR_OK)) { \