From 4cbca117a3f2ef2d6695504970378ec4c483d19f Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 5 Feb 2018 17:27:45 +0100 Subject: Compatibility layer for pcre2 This should close #129--- src/sp_utils.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/sp_utils.h') diff --git a/src/sp_utils.h b/src/sp_utils.h index ada7cf6..10a6daa 100644 --- a/src/sp_utils.h +++ b/src/sp_utils.h @@ -46,17 +46,16 @@ void sp_log_msg(char const *feature, char const *level, const char *fmt, ...); int compute_hash(const char *const filename, char *file_hash); char *sp_convert_to_string(zval *); -bool sp_match_value(const char *, const char *, const pcre *); -bool sp_match_array_key(const zval *, const char *, const pcre *); -bool sp_match_array_value(const zval *, const char *, const pcre *); +bool sp_match_value(const char *, const char *, const sp_pcre *); +bool sp_match_array_key(const zval *, const char *, const sp_pcre *); +bool sp_match_array_value(const zval *, const char *, const sp_pcre *); void sp_log_disable(const char *restrict, const char *restrict, const char *restrict, const sp_disabled_function *); void sp_log_disable_ret(const char *restrict, const char *restrict, const sp_disabled_function *); -int is_regexp_matching(const pcre *, const char *); int hook_function(const char *, HashTable *, void (*)(INTERNAL_FUNCTION_PARAMETERS), bool); -int hook_regexp(const pcre *, HashTable *, +int hook_regexp(const sp_pcre *, HashTable *, void (*)(INTERNAL_FUNCTION_PARAMETERS), bool); bool check_is_in_eval_whitelist(const char * const function_name); -- cgit v1.3