mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add missing zend_parse_parameters_none()
This commit is contained in:
parent
0a47096c08
commit
013506779c
1 changed files with 8 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue