RETURN_FALSE;
}
- if (offset > haystack.len) {
+ if ((unsigned int)offset > haystack.len) {
RETURN_FALSE;
}
}
}
- if (from > string.len) {
+ if ((unsigned int)from > string.len) {
RETURN_FALSE;
}
- if (((unsigned) from + (unsigned) len) > string.len) {
+ if (((unsigned int)from + (unsigned int)len) > string.len) {
len = string.len - from;
}
}
if (ZEND_NUM_ARGS() < 3) {
- strict = MBSTRG(strict_detection);
+ strict = (zend_bool)MBSTRG(strict_detection);
}
if (size > 0 && list != NULL) {
zval_dtor(&v);
}
n = regs->end[0];
- if ((size_t)(pos - (OnigUChar *)string) < n) {
+ if ((pos - (OnigUChar *)string) < n) {
pos = (OnigUChar *)string + n;
} else {
if (pos < string_lim) {
}
/* add it to the array */
- if (regs->beg[0] < string_len && regs->beg[0] >= (size_t)(pos - (OnigUChar *)string)) {
+ if (regs->beg[0] < string_len && regs->beg[0] >= (pos - (OnigUChar *)string)) {
add_next_index_stringl(return_value, (char *)pos, ((OnigUChar *)(string + regs->beg[0]) - pos), 1);
} else {
err = -2;
{
zval **arg_str, **arg_pattern, **arg_options;
OnigSyntaxType *syntax = NULL;
- int option;
+ OnigOptionType option;
option = MBREX(regex_default_options);
syntax = MBREX(regex_default_syntax);