From: Nikita Popov Date: Wed, 2 Jan 2019 10:17:38 +0000 (+0100) Subject: Use ZEND_PARSE_PARAMETERS_NONE in pcre X-Git-Tag: php-7.4.0alpha1~1307 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fab3302aed1323a20c592fce1423d0138b7de09;p=php Use ZEND_PARSE_PARAMETERS_NONE in pcre Instead of the manual ZEND_PARSE_PARAMETERS_START(0, 0) form. --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index da5b69ed55..16ebedd7ac 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -2912,8 +2912,7 @@ PHPAPI void php_pcre_grep_impl(pcre_cache_entry *pce, zval *input, zval *return Returns the error code of the last regexp execution. */ static PHP_FUNCTION(preg_last_error) { - ZEND_PARSE_PARAMETERS_START(0, 0) - ZEND_PARSE_PARAMETERS_END(); + ZEND_PARSE_PARAMETERS_NONE(); RETURN_LONG(PCRE_G(error_code)); }