summaryrefslogtreecommitdiff
path: root/src/sp_utils.h
diff options
context:
space:
mode:
authorBen Fuhrmannek2022-02-05 12:22:13 +0100
committerBen Fuhrmannek2022-02-05 12:22:13 +0100
commit323f818a6ce33d021bc0a6d34064598917e68c91 (patch)
tree474200051e6e908489ea8d23a58fc60464ea9492 /src/sp_utils.h
parentdece0e45b7f66cc51bcbe590240eab3f82da900c (diff)
introduced sp_regexp / store original regex
Diffstat (limited to 'src/sp_utils.h')
-rw-r--r--src/sp_utils.h15
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
73const char *get_ipaddr(void); 73const char *get_ipaddr(void);
74void sp_log_msgf(char const *restrict feature, int level, int type, 74void sp_log_msgf(char const *restrict feature, int level, int type, const char *restrict fmt, ...);
75 const char *restrict fmt, ...);
76int compute_hash(const char *const restrict filename, char *restrict file_hash); 75int compute_hash(const char *const restrict filename, char *restrict file_hash);
77const zend_string *sp_zval_to_zend_string(const zval *); 76const zend_string *sp_zval_to_zend_string(const zval *);
78bool sp_match_value(const zend_string *, const zend_string *, const sp_pcre *); 77bool sp_match_value(const zend_string* value, const zend_string* to_match, const sp_regexp* rx);
79bool sp_match_array_key(const zval *, const zend_string *, const sp_pcre *); 78bool sp_match_array_key(const zval *, const zend_string *, const sp_regexp *);
80bool sp_match_array_value(const zval *, const zend_string *, const sp_pcre *); 79bool sp_match_array_value(const zval *, const zend_string *, const sp_regexp *);
81void sp_log_disable(const char *restrict, const char *restrict, 80void 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 *); 81void sp_log_disable_ret(const char *restrict, const zend_string *restrict, const sp_disabled_function *);
83void sp_log_disable_ret(const char *restrict, const zend_string *restrict,
84 const sp_disabled_function *);
85bool hook_function(const char *, HashTable *, zif_handler); 82bool hook_function(const char *, HashTable *, zif_handler);
86void unhook_functions(HashTable *ht); 83void unhook_functions(HashTable *ht);
87int hook_regexp(const sp_pcre *, HashTable *, zif_handler); 84int hook_regexp(const sp_pcre *, HashTable *, zif_handler);