Skip to content

Change mbstring values from size_t to ptrdiff_t as that's what they return #5196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ext/mbstring/php_mbregex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,9 @@ _php_mb_regex_ereg_search_exec(INTERNAL_FUNCTION_PARAMETERS, int mode)
char *arg_pattern = NULL, *arg_options = NULL;
size_t arg_pattern_len, arg_options_len;
int err;
size_t n, i, pos, len, beg, end;
size_t n, i, pos, len;
/* Stored as int* in the OnigRegion struct */
int beg, end;
OnigOptionType option;
OnigUChar *str;
OnigSyntaxType *syntax;
Expand Down Expand Up @@ -1585,7 +1587,9 @@ PHP_FUNCTION(mb_ereg_search_init)
Get matched substring of the last time */
PHP_FUNCTION(mb_ereg_search_getregs)
{
size_t n, i, len, beg, end;
size_t n, i, len;
/* Stored as int* in the OnigRegion struct */
int beg, end;
OnigUChar *str;

if (zend_parse_parameters_none() == FAILURE) {
Expand Down