]> granicus.if.org Git - php/commitdiff
Use ZEND_PARSE_PARAMETERS_NONE in pcre
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 2 Jan 2019 10:17:38 +0000 (11:17 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 2 Jan 2019 10:18:35 +0000 (11:18 +0100)
Instead of the manual ZEND_PARSE_PARAMETERS_START(0, 0) form.

ext/pcre/php_pcre.c

index da5b69ed5553dbd185db75af904ad0ee6d9873a3..16ebedd7ac2fb9e20c97fefc1e16914e51871159 100644 (file)
@@ -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));
 }