diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-01-02 11:17:38 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-01-02 11:18:35 +0100 |
commit | 2fab3302aed1323a20c592fce1423d0138b7de09 (patch) | |
tree | 417c529695075138d12f8c05feabdb8a8ecb1941 | |
parent | 5c3bac9c21baa21b8cfb1d1e75fc8cfcf8417722 (diff) | |
download | php-git-2fab3302aed1323a20c592fce1423d0138b7de09.tar.gz |
Use ZEND_PARSE_PARAMETERS_NONE in pcre
Instead of the manual ZEND_PARSE_PARAMETERS_START(0, 0) form.
-rw-r--r-- | ext/pcre/php_pcre.c | 3 |
1 files changed, 1 insertions, 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)); } |