diff options
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r-- | ext/mbstring/php_mbregex.c | 8 |
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)); } /* }}} */ |