From 2fab3302aed1323a20c592fce1423d0138b7de09 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 2 Jan 2019 11:17:38 +0100 Subject: [PATCH] Use ZEND_PARSE_PARAMETERS_NONE in pcre Instead of the manual ZEND_PARSE_PARAMETERS_START(0, 0) form. --- ext/pcre/php_pcre.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); } -- 2.50.1