summaryrefslogtreecommitdiff
path: root/php_suhosin7.h
diff options
context:
space:
mode:
Diffstat (limited to 'php_suhosin7.h')
-rw-r--r--php_suhosin7.h141
1 files changed, 70 insertions, 71 deletions
diff --git a/php_suhosin7.h b/php_suhosin7.h
index 11dcdd5..aefe4b9 100644
--- a/php_suhosin7.h
+++ b/php_suhosin7.h
@@ -123,21 +123,21 @@ protected_varname:
123 123
124 124
125ZEND_BEGIN_MODULE_GLOBALS(suhosin7) 125ZEND_BEGIN_MODULE_GLOBALS(suhosin7)
126 zend_long global_value; 126 // zend_long global_value;
127 char *global_string; 127 // char *global_string;
128 zend_bool protectkey; 128 zend_bool protectkey;
129 129
130 zend_bool simulation; 130 zend_bool simulation;
131 zend_bool stealth; 131 // zend_bool stealth;
132 zend_bool already_scanned; 132 zend_bool already_scanned;
133 zend_bool abort_request; 133 zend_bool abort_request;
134 char *filter_action; 134 // char *filter_action;
135 135 //
136 136 //
137 zend_bool executor_allow_symlink; 137 // zend_bool executor_allow_symlink;
138 long max_execution_depth; 138 // long max_execution_depth;
139 long executor_include_max_traversal; 139 // long executor_include_max_traversal;
140 zend_bool executor_include_allow_writable_files; 140 // zend_bool executor_include_allow_writable_files;
141 141
142 142
143 HashTable *include_whitelist; 143 HashTable *include_whitelist;
@@ -148,8 +148,8 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7)
148 HashTable *eval_whitelist; 148 HashTable *eval_whitelist;
149 HashTable *eval_blacklist; 149 HashTable *eval_blacklist;
150 150
151 zend_bool executor_disable_eval; 151 // zend_bool executor_disable_eval;
152 zend_bool executor_disable_emod; 152 // zend_bool executor_disable_emod;
153 153
154 154
155/* request variables */ 155/* request variables */
@@ -198,25 +198,26 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7)
198 zend_long max_post_array_index_length; 198 zend_long max_post_array_index_length;
199 zend_bool disallow_post_nul; 199 zend_bool disallow_post_nul;
200 zend_bool disallow_post_ws; 200 zend_bool disallow_post_ws;
201 201
202/* fileupload */ 202/* fileupload */
203 zend_long upload_limit; 203 // zend_long upload_limit;
204 zend_long upload_max_newlines; 204 // zend_long upload_max_newlines;
205 zend_long num_uploads; 205 // zend_long num_uploads;
206 zend_bool upload_disallow_elf; 206 // zend_bool upload_disallow_elf;
207 zend_bool upload_disallow_binary; 207 // zend_bool upload_disallow_binary;
208 zend_bool upload_remove_binary; 208 // zend_bool upload_remove_binary;
209#ifdef SUHOSIN7_EXPERIMENTAL 209#ifdef SUHOSIN7_EXPERIMENTAL
210 zend_bool upload_allow_utf8; 210 // zend_bool upload_allow_utf8;
211#endif 211#endif
212 char *upload_verification_script; 212 // char *upload_verification_script;
213 213
214 zend_bool no_more_variables; 214 zend_bool no_more_variables;
215 zend_bool no_more_get_variables; 215 zend_bool no_more_get_variables;
216 zend_bool no_more_post_variables; 216 zend_bool no_more_post_variables;
217 zend_bool no_more_cookie_variables; 217 zend_bool no_more_cookie_variables;
218 zend_bool no_more_uploads; 218 zend_bool no_more_uploads;
219 219
220 /* encryption */
220 BYTE fi[24],ri[24]; 221 BYTE fi[24],ri[24];
221 WORD fkey[120]; 222 WORD fkey[120];
222 WORD rkey[120]; 223 WORD rkey[120];
@@ -241,29 +242,31 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7)
241 HashTable *cookie_plainlist; 242 HashTable *cookie_plainlist;
242 HashTable *cookie_cryptlist; 243 HashTable *cookie_cryptlist;
243 244
244 zend_bool coredump; 245 /* misc */
245 zend_bool apc_bug_workaround; 246 // zend_bool coredump;
247 // zend_bool apc_bug_workaround;
246 zend_bool do_not_scan; 248 zend_bool do_not_scan;
247 249 //
248 zend_bool server_encode; 250 zend_bool server_encode;
249 zend_bool server_strip; 251 zend_bool server_strip;
252 //
253 // zend_bool disable_display_errors;
250 254
251 zend_bool disable_display_errors; 255 /* random number generator */
252 256 // php_uint32 r_state[625];
253 php_uint32 r_state[625]; 257 // php_uint32 *r_next;
254 php_uint32 *r_next; 258 // int r_left;
255 int r_left; 259 // zend_bool srand_ignore;
256 zend_bool srand_ignore; 260 // zend_bool mt_srand_ignore;
257 zend_bool mt_srand_ignore; 261 // php_uint32 mt_state[625];
258 php_uint32 mt_state[625]; 262 // php_uint32 *mt_next;
259 php_uint32 *mt_next; 263 // int mt_left;
260 int mt_left; 264 //
261 265 // char *seedingkey;
262 char *seedingkey; 266 // zend_bool reseed_every_request;
263 zend_bool reseed_every_request; 267 //
264 268 // zend_bool r_is_seeded;
265 zend_bool r_is_seeded; 269 // zend_bool mt_is_seeded;
266 zend_bool mt_is_seeded;
267 270
268 271
269/* memory_limit */ 272/* memory_limit */
@@ -286,38 +289,38 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7)
286 zend_bool misc_perdir; 289 zend_bool misc_perdir;
287 290
288 /* log */ 291 /* log */
289 zend_bool log_use_x_forwarded_for; 292 // zend_bool log_use_x_forwarded_for;
290 long log_syslog; 293 // long log_syslog;
291 long log_syslog_facility; 294 // long log_syslog_facility;
292 long log_syslog_priority; 295 // long log_syslog_priority;
293 long log_script; 296 // long log_script;
294 long log_sapi; 297 // long log_sapi;
295 long log_stdout; 298 // long log_stdout;
296 char *log_scriptname; 299 // char *log_scriptname;
297 long log_phpscript; 300 // long log_phpscript;
298 char *log_phpscriptname; 301 // char *log_phpscriptname;
299 zend_bool log_phpscript_is_safe; 302 // zend_bool log_phpscript_is_safe;
300 long log_file; 303 // long log_file;
301 char *log_filename; 304 // char *log_filename;
302 zend_bool log_file_time; 305 // zend_bool log_file_time;
303 306
304 /* header handler */ 307 /* header handler */
305 zend_bool allow_multiheader; 308 // zend_bool allow_multiheader;
306 309
307 /* mailprotect */ 310 /* mailprotect */
308 long mailprotect; 311 // long mailprotect;
309 312
310 /* sqlprotect */ 313 /* sqlprotect */
311 zend_bool sql_bailout_on_error; 314 // zend_bool sql_bailout_on_error;
312 char *sql_user_prefix; 315 // char *sql_user_prefix;
313 char *sql_user_postfix; 316 // char *sql_user_postfix;
314 char *sql_user_match; 317 // char *sql_user_match;
315 long sql_comment; 318 // long sql_comment;
316 long sql_opencomment; 319 // long sql_opencomment;
317 long sql_union; 320 // long sql_union;
318 long sql_mselect; 321 // long sql_mselect;
319 322
320 int (*old_php_body_write)(const char *str, unsigned int str_length TSRMLS_DC); 323 // int (*old_php_body_write)(const char *str, unsigned int str_length TSRMLS_DC);
321 324
322ZEND_END_MODULE_GLOBALS(suhosin7) 325ZEND_END_MODULE_GLOBALS(suhosin7)
323 326
@@ -327,10 +330,6 @@ ZEND_END_MODULE_GLOBALS(suhosin7)
327*/ 330*/
328#define SUHOSIN7_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(suhosin7, v) 331#define SUHOSIN7_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(suhosin7, v)
329 332
330#ifdef SUHOSIN7_DEBUG
331#define SUHOSIN_G(v) SUHOSIN7_G(v)
332#endif
333
334#if defined(ZTS) && defined(COMPILE_DL_SUHOSIN7) 333#if defined(ZTS) && defined(COMPILE_DL_SUHOSIN7)
335ZEND_TSRMLS_CACHE_EXTERN(); 334ZEND_TSRMLS_CACHE_EXTERN();
336#endif 335#endif