summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-10-06 17:55:59 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-10-06 17:56:40 +0200
commit013506779cea9d23043d3eeb0eb616d6d6a94b17 (patch)
tree94b6928a29c85ef94031d2563403a0072ede8fba /ext/mbstring/php_mbregex.c
parent0a47096c08b23bb441a527f063a656d35facfc19 (diff)
downloadphp-git-013506779cea9d23043d3eeb0eb616d6d6a94b17.tar.gz
Add missing zend_parse_parameters_none()
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c8
1 files changed, 8 insertions, 0 deletions
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));
}
/* }}} */