From 013506779cea9d23043d3eeb0eb616d6d6a94b17 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 6 Oct 2019 17:55:59 +0200 Subject: Add missing zend_parse_parameters_none() --- ext/mbstring/php_mbregex.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ext/mbstring/php_mbregex.c') diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 887dc7df45..6110e52056 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -1585,6 +1585,10 @@ PHP_FUNCTION(mb_ereg_search_getregs) size_t n, i, len, beg, end; OnigUChar *str; + if (zend_parse_parameters_none() == FAILURE) { + return; + } + if (MBREX(search_regs) != NULL && Z_TYPE(MBREX(search_str)) == IS_STRING) { array_init(return_value); @@ -1619,6 +1623,10 @@ PHP_FUNCTION(mb_ereg_search_getregs) Get search start position */ PHP_FUNCTION(mb_ereg_search_getpos) { + if (zend_parse_parameters_none() == FAILURE) { + return; + } + RETVAL_LONG(MBREX(search_pos)); } /* }}} */ -- cgit v1.2.1