diff options
| author | Ben Fuhrmannek | 2022-02-05 12:22:13 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2022-02-05 12:22:13 +0100 |
| commit | 323f818a6ce33d021bc0a6d34064598917e68c91 (patch) | |
| tree | 474200051e6e908489ea8d23a58fc60464ea9492 /src/sp_utils.h | |
| parent | dece0e45b7f66cc51bcbe590240eab3f82da900c (diff) | |
introduced sp_regexp / store original regex
Diffstat (limited to 'src/sp_utils.h')
| -rw-r--r-- | src/sp_utils.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/sp_utils.h b/src/sp_utils.h index 0581363..0e595d8 100644 --- a/src/sp_utils.h +++ b/src/sp_utils.h | |||
| @@ -71,17 +71,14 @@ extern int sp_debug_stderr; | |||
| 71 | #define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th") | 71 | #define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th") |
| 72 | 72 | ||
| 73 | const char *get_ipaddr(void); | 73 | const char *get_ipaddr(void); |
| 74 | void sp_log_msgf(char const *restrict feature, int level, int type, | 74 | void sp_log_msgf(char const *restrict feature, int level, int type, const char *restrict fmt, ...); |
| 75 | const char *restrict fmt, ...); | ||
| 76 | int compute_hash(const char *const restrict filename, char *restrict file_hash); | 75 | int compute_hash(const char *const restrict filename, char *restrict file_hash); |
| 77 | const zend_string *sp_zval_to_zend_string(const zval *); | 76 | const zend_string *sp_zval_to_zend_string(const zval *); |
| 78 | bool sp_match_value(const zend_string *, const zend_string *, const sp_pcre *); | 77 | bool sp_match_value(const zend_string* value, const zend_string* to_match, const sp_regexp* rx); |
| 79 | bool sp_match_array_key(const zval *, const zend_string *, const sp_pcre *); | 78 | bool sp_match_array_key(const zval *, const zend_string *, const sp_regexp *); |
| 80 | bool sp_match_array_value(const zval *, const zend_string *, const sp_pcre *); | 79 | bool sp_match_array_value(const zval *, const zend_string *, const sp_regexp *); |
| 81 | void sp_log_disable(const char *restrict, const char *restrict, | 80 | void sp_log_disable(const char *restrict, const char *restrict, const zend_string *restrict, const sp_disabled_function *); |
| 82 | const zend_string *restrict, const sp_disabled_function *); | 81 | void sp_log_disable_ret(const char *restrict, const zend_string *restrict, const sp_disabled_function *); |
| 83 | void sp_log_disable_ret(const char *restrict, const zend_string *restrict, | ||
| 84 | const sp_disabled_function *); | ||
| 85 | bool hook_function(const char *, HashTable *, zif_handler); | 82 | bool hook_function(const char *, HashTable *, zif_handler); |
| 86 | void unhook_functions(HashTable *ht); | 83 | void unhook_functions(HashTable *ht); |
| 87 | int hook_regexp(const sp_pcre *, HashTable *, zif_handler); | 84 | int hook_regexp(const sp_pcre *, HashTable *, zif_handler); |
