Skip to content

Commit 2fab330

Browse files
committed
Use ZEND_PARSE_PARAMETERS_NONE in pcre
Instead of the manual ZEND_PARSE_PARAMETERS_START(0, 0) form.
1 parent 5c3bac9 commit 2fab330

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/pcre/php_pcre.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2912,8 +2912,7 @@ PHPAPI void php_pcre_grep_impl(pcre_cache_entry *pce, zval *input, zval *return
29122912
Returns the error code of the last regexp execution. */
29132913
static PHP_FUNCTION(preg_last_error)
29142914
{
2915-
ZEND_PARSE_PARAMETERS_START(0, 0)
2916-
ZEND_PARSE_PARAMETERS_END();
2915+
ZEND_PARSE_PARAMETERS_NONE();
29172916

29182917
RETURN_LONG(PCRE_G(error_code));
29192918
}

0 commit comments

Comments
 (0)