diff options
| author | jvoisin | 2018-02-05 17:27:45 +0100 |
|---|---|---|
| committer | GitHub | 2018-02-05 17:27:45 +0100 |
| commit | 4cbca117a3f2ef2d6695504970378ec4c483d19f (patch) | |
| tree | 2fe9d10ddf5fdff1c1c0f4cf0cf7cbb16d274e27 /src/sp_utils.h | |
| parent | f0a956e825a83ff3a58d4714a92fbb945f6c8841 (diff) | |
Compatibility layer for pcre2
This should close #129
Diffstat (limited to '')
| -rw-r--r-- | src/sp_utils.h | 9 |
1 files changed, 4 insertions, 5 deletions
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 @@ | |||
| 46 | void sp_log_msg(char const *feature, char const *level, const char *fmt, ...); | 46 | void sp_log_msg(char const *feature, char const *level, const char *fmt, ...); |
| 47 | int compute_hash(const char *const filename, char *file_hash); | 47 | int compute_hash(const char *const filename, char *file_hash); |
| 48 | char *sp_convert_to_string(zval *); | 48 | char *sp_convert_to_string(zval *); |
| 49 | bool sp_match_value(const char *, const char *, const pcre *); | 49 | bool sp_match_value(const char *, const char *, const sp_pcre *); |
| 50 | bool sp_match_array_key(const zval *, const char *, const pcre *); | 50 | bool sp_match_array_key(const zval *, const char *, const sp_pcre *); |
| 51 | bool sp_match_array_value(const zval *, const char *, const pcre *); | 51 | bool sp_match_array_value(const zval *, const char *, const sp_pcre *); |
| 52 | void sp_log_disable(const char *restrict, const char *restrict, | 52 | void sp_log_disable(const char *restrict, const char *restrict, |
| 53 | const char *restrict, const sp_disabled_function *); | 53 | const char *restrict, const sp_disabled_function *); |
| 54 | void sp_log_disable_ret(const char *restrict, const char *restrict, | 54 | void sp_log_disable_ret(const char *restrict, const char *restrict, |
| 55 | const sp_disabled_function *); | 55 | const sp_disabled_function *); |
| 56 | int is_regexp_matching(const pcre *, const char *); | ||
| 57 | int hook_function(const char *, HashTable *, | 56 | int hook_function(const char *, HashTable *, |
| 58 | void (*)(INTERNAL_FUNCTION_PARAMETERS), bool); | 57 | void (*)(INTERNAL_FUNCTION_PARAMETERS), bool); |
| 59 | int hook_regexp(const pcre *, HashTable *, | 58 | int hook_regexp(const sp_pcre *, HashTable *, |
| 60 | void (*)(INTERNAL_FUNCTION_PARAMETERS), bool); | 59 | void (*)(INTERNAL_FUNCTION_PARAMETERS), bool); |
| 61 | bool check_is_in_eval_whitelist(const char * const function_name); | 60 | bool check_is_in_eval_whitelist(const char * const function_name); |
| 62 | 61 | ||
