@@ -592,7 +592,7 @@ static size_t _php_mb_regex_get_option_string(char *str, size_t len, OnigOptionT
592
592
593
593
/* {{{ _php_mb_regex_init_options */
594
594
static bool _php_mb_regex_init_options (const char * parg , size_t narg , OnigOptionType * option ,
595
- OnigSyntaxType * * syntax , uint32_t option_arg_num )
595
+ OnigSyntaxType * * syntax )
596
596
{
597
597
size_t n ;
598
598
char c ;
@@ -1044,7 +1044,7 @@ static void _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAMETERS, OnigOp
1044
1044
1045
1045
if (option_str != NULL ) {
1046
1046
/* Initialize option and in case of failure it means there is a value error */
1047
- if (!_php_mb_regex_init_options (option_str , option_str_len , & options , & syntax , 4 )) {
1047
+ if (!_php_mb_regex_init_options (option_str , option_str_len , & options , & syntax )) {
1048
1048
RETURN_THROWS ();
1049
1049
}
1050
1050
} else {
@@ -1293,7 +1293,7 @@ PHP_FUNCTION(mb_ereg_match)
1293
1293
}
1294
1294
1295
1295
if (option_str != NULL ) {
1296
- if (!_php_mb_regex_init_options (option_str , option_str_len , & option , & syntax , 3 )) {
1296
+ if (!_php_mb_regex_init_options (option_str , option_str_len , & option , & syntax )) {
1297
1297
RETURN_THROWS ();
1298
1298
}
1299
1299
} else {
@@ -1348,7 +1348,7 @@ static void _php_mb_regex_ereg_search_exec(INTERNAL_FUNCTION_PARAMETERS, int mod
1348
1348
}
1349
1349
1350
1350
if (arg_options ) {
1351
- _php_mb_regex_init_options (arg_options , arg_options_len , & option , & syntax , 2 );
1351
+ _php_mb_regex_init_options (arg_options , arg_options_len , & option , & syntax );
1352
1352
} else {
1353
1353
option |= MBREX (regex_default_options );
1354
1354
syntax = MBREX (regex_default_syntax );
@@ -1486,7 +1486,7 @@ PHP_FUNCTION(mb_ereg_search_init)
1486
1486
1487
1487
if (arg_options ) {
1488
1488
option = 0 ;
1489
- _php_mb_regex_init_options (arg_options , arg_options_len , & option , & syntax , 3 );
1489
+ _php_mb_regex_init_options (arg_options , arg_options_len , & option , & syntax );
1490
1490
} else {
1491
1491
option = MBREX (regex_default_options );
1492
1492
syntax = MBREX (regex_default_syntax );
@@ -1629,7 +1629,7 @@ PHP_FUNCTION(mb_regex_set_options)
1629
1629
if (string != NULL ) {
1630
1630
opt = 0 ;
1631
1631
syntax = NULL ;
1632
- if (!_php_mb_regex_init_options (string , string_len , & opt , & syntax , 1 )) {
1632
+ if (!_php_mb_regex_init_options (string , string_len , & opt , & syntax )) {
1633
1633
RETURN_THROWS ();
1634
1634
}
1635
1635
_php_mb_regex_set_options (opt , syntax , & prev_opt , & prev_syntax );
0 commit comments