summaryrefslogtreecommitdiff
path: root/src/sp_config.h
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-08-07 15:56:57 +0200
committerBen Fuhrmannek2021-08-07 15:56:57 +0200
commitbd8b5bb241ca359b65c1a3717c9905d034b9703b (patch)
tree152cf1c0c91433ef7599097b4e9d12241c5dc628 /src/sp_config.h
parente8bb162220ac17cb9b8cc229666356e88f081887 (diff)
more ini protection features
Diffstat (limited to 'src/sp_config.h')
-rw-r--r--src/sp_config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sp_config.h b/src/sp_config.h
index bd2530a..0ba2e7f 100644
--- a/src/sp_config.h
+++ b/src/sp_config.h
@@ -170,17 +170,21 @@ typedef struct {
170 zend_string *min; 170 zend_string *min;
171 zend_string *max; 171 zend_string *max;
172 sp_pcre *regexp; 172 sp_pcre *regexp;
173 bool simulation;
174 zend_string *msg; 173 zend_string *msg;
175 zend_string *set; 174 zend_string *set;
175 bool allow_null;
176 bool simulation;
177 bool drop;
176 PHP_INI_MH((*orig_onmodify)); 178 PHP_INI_MH((*orig_onmodify));
177} sp_ini_entry; 179} sp_ini_entry;
178 180
179typedef struct { 181typedef struct {
180 bool enable; 182 bool enable;
181 bool simulation; 183 bool simulation;
182 // sp_ini_permission access_policy;
183 bool policy_readonly; 184 bool policy_readonly;
185 bool policy_silent_ro;
186 bool policy_silent_fail;
187 bool policy_drop;
184 HashTable *entries; // ht of sp_ini_entry 188 HashTable *entries; // ht of sp_ini_entry
185} sp_config_ini; 189} sp_config_ini;
186 190