#endif
php_error_docref(NULL, E_WARNING,
p < ZSTR_VAL(regex) + ZSTR_LEN(regex) ? "Null byte in regex" : "Empty regular expression");
- pcre_handle_exec_error(PCRE_ERROR_INTERNAL);
+ pcre_handle_exec_error(PCRE2_ERROR_INTERNAL);
return NULL;
}
}
#endif
php_error_docref(NULL,E_WARNING, "Delimiter must not be alphanumeric or backslash");
- pcre_handle_exec_error(PCRE_ERROR_INTERNAL);
+ pcre_handle_exec_error(PCRE2_ERROR_INTERNAL);
return NULL;
}
} else {
php_error_docref(NULL,E_WARNING, "No ending matching delimiter '%c' found", delimiter);
}
- pcre_handle_exec_error(PCRE_ERROR_INTERNAL);
+ pcre_handle_exec_error(PCRE2_ERROR_INTERNAL);
return NULL;
}
} else {
php_error_docref(NULL,E_WARNING, "Null byte in regex");
}
- pcre_handle_exec_error(PCRE_ERROR_INTERNAL);
+ pcre_handle_exec_error(PCRE2_ERROR_INTERNAL);
efree(pattern);
#if HAVE_SETLOCALE
if (key != regex) {
#endif
pcre2_get_error_message(errnumber, error, sizeof(error));
php_error_docref(NULL,E_WARNING, "Compilation failed: %s at offset %zu", error, erroffset);
- pcre_handle_exec_error(PCRE_ERROR_INTERNAL);
+ pcre_handle_exec_error(PCRE2_ERROR_INTERNAL);
efree(pattern);
if (tables) {
pefree((void*)tables, 1);
} else {
pcre2_get_error_message(rc, error, sizeof(error));
php_error_docref(NULL, E_WARNING, "JIT compilation failed: %s", error);
- pcre_handle_exec_error(PCRE_ERROR_INTERNAL);
+ pcre_handle_exec_error(PCRE2_ERROR_INTERNAL);
}
}
#endif
}
#endif
php_error_docref(NULL, E_WARNING, "Internal pcre2_pattern_info() error %d", rc);
- pcre_handle_exec_error(PCRE_ERROR_INTERNAL);
+ pcre_handle_exec_error(PCRE2_ERROR_INTERNAL);
return NULL;
}
}
#endif
php_error_docref(NULL, E_WARNING, "Internal pcre_pattern_info() error %d", rc);
- pcre_handle_exec_error(PCRE_ERROR_INTERNAL);
+ pcre_handle_exec_error(PCRE2_ERROR_INTERNAL);
return NULL;
}