diff options
Diffstat (limited to 'php_suhosin7.h')
| -rw-r--r-- | php_suhosin7.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/php_suhosin7.h b/php_suhosin7.h index 6c515ba..1398a36 100644 --- a/php_suhosin7.h +++ b/php_suhosin7.h | |||
| @@ -16,8 +16,6 @@ | |||
| 16 | +----------------------------------------------------------------------+ | 16 | +----------------------------------------------------------------------+ |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | /* $Id$ */ | ||
| 20 | |||
| 21 | #pragma once | 19 | #pragma once |
| 22 | 20 | ||
| 23 | extern zend_module_entry suhosin7_module_entry; | 21 | extern zend_module_entry suhosin7_module_entry; |
| @@ -56,7 +54,7 @@ extern zend_module_entry suhosin7_module_entry; | |||
| 56 | {FILE *f;f=fopen(SUHOSIN_LOG, "a+");if(f){fprintf(f,"[%u] %s:%u %s #> ",getpid(), __FILE__, __LINE__, __func__);fprintf(f, msg);fprintf(f,"\n");fclose(f);}} | 54 | {FILE *f;f=fopen(SUHOSIN_LOG, "a+");if(f){fprintf(f,"[%u] %s:%u %s #> ",getpid(), __FILE__, __LINE__, __func__);fprintf(f, msg);fprintf(f,"\n");fclose(f);}} |
| 57 | #else | 55 | #else |
| 58 | #define SDEBUG(msg...) | 56 | #define SDEBUG(msg...) |
| 59 | #endif | 57 | #endif |
| 60 | #endif | 58 | #endif |
| 61 | 59 | ||
| 62 | /* -------------- */ | 60 | /* -------------- */ |
| @@ -128,13 +126,13 @@ protected_varname: | |||
| 128 | 126 | ||
| 129 | ZEND_BEGIN_MODULE_GLOBALS(suhosin7) | 127 | ZEND_BEGIN_MODULE_GLOBALS(suhosin7) |
| 130 | zend_bool protectkey; | 128 | zend_bool protectkey; |
| 131 | 129 | ||
| 132 | zend_bool simulation; | 130 | zend_bool simulation; |
| 133 | // zend_bool stealth; | 131 | // zend_bool stealth; |
| 134 | // zend_bool already_scanned; | 132 | // zend_bool already_scanned; |
| 135 | zend_bool abort_request; | 133 | zend_bool abort_request; |
| 136 | // | 134 | // |
| 137 | 135 | ||
| 138 | /* executor */ | 136 | /* executor */ |
| 139 | zend_ulong in_code_type; | 137 | zend_ulong in_code_type; |
| 140 | zend_bool executor_allow_symlink; | 138 | zend_bool executor_allow_symlink; |
| @@ -203,7 +201,7 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7) | |||
| 203 | zend_long max_post_array_index_length; | 201 | zend_long max_post_array_index_length; |
| 204 | zend_bool disallow_post_nul; | 202 | zend_bool disallow_post_nul; |
| 205 | zend_bool disallow_post_ws; | 203 | zend_bool disallow_post_ws; |
| 206 | 204 | ||
| 207 | /* fileupload */ | 205 | /* fileupload */ |
| 208 | zend_long upload_max_newlines; | 206 | zend_long upload_max_newlines; |
| 209 | zend_long upload_limit; | 207 | zend_long upload_limit; |
| @@ -235,7 +233,7 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7) | |||
| 235 | BYTE fi[24],ri[24]; | 233 | BYTE fi[24],ri[24]; |
| 236 | WORD fkey[120]; | 234 | WORD fkey[120]; |
| 237 | WORD rkey[120]; | 235 | WORD rkey[120]; |
| 238 | 236 | ||
| 239 | zend_bool session_encrypt; | 237 | zend_bool session_encrypt; |
| 240 | char* session_cryptkey; | 238 | char* session_cryptkey; |
| 241 | zend_bool session_cryptua; | 239 | zend_bool session_cryptua; |
| @@ -260,10 +258,10 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7) | |||
| 260 | zend_bool coredump; | 258 | zend_bool coredump; |
| 261 | // zend_bool apc_bug_workaround; | 259 | // zend_bool apc_bug_workaround; |
| 262 | // zend_bool do_not_scan; | 260 | // zend_bool do_not_scan; |
| 263 | // | 261 | // |
| 264 | zend_bool server_encode; | 262 | zend_bool server_encode; |
| 265 | zend_bool server_strip; | 263 | zend_bool server_strip; |
| 266 | // | 264 | // |
| 267 | zend_bool disable_display_errors; | 265 | zend_bool disable_display_errors; |
| 268 | 266 | ||
| 269 | /* random number generator */ | 267 | /* random number generator */ |
| @@ -275,11 +273,11 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7) | |||
| 275 | php_uint32 mt_state[625]; | 273 | php_uint32 mt_state[625]; |
| 276 | php_uint32 *mt_next; | 274 | php_uint32 *mt_next; |
| 277 | int mt_left; | 275 | int mt_left; |
| 278 | 276 | ||
| 279 | char *seedingkey; | 277 | char *seedingkey; |
| 280 | zend_bool reseed_every_request; | 278 | zend_bool reseed_every_request; |
| 281 | // | 279 | // |
| 282 | zend_bool r_is_seeded; | 280 | zend_bool r_is_seeded; |
| 283 | zend_bool mt_is_seeded; | 281 | zend_bool mt_is_seeded; |
| 284 | 282 | ||
| 285 | 283 | ||
| @@ -287,7 +285,7 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7) | |||
| 287 | zend_long memory_limit; | 285 | zend_long memory_limit; |
| 288 | zend_long hard_memory_limit; | 286 | zend_long hard_memory_limit; |
| 289 | 287 | ||
| 290 | 288 | ||
| 291 | 289 | ||
| 292 | 290 | ||
| 293 | /* PERDIR Handling */ | 291 | /* PERDIR Handling */ |
| @@ -333,7 +331,7 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7) | |||
| 333 | // long sql_opencomment; | 331 | // long sql_opencomment; |
| 334 | // long sql_union; | 332 | // long sql_union; |
| 335 | // long sql_mselect; | 333 | // long sql_mselect; |
| 336 | 334 | ||
| 337 | // int (*old_php_body_write)(const char *str, unsigned int str_length); | 335 | // int (*old_php_body_write)(const char *str, unsigned int str_length); |
| 338 | 336 | ||
| 339 | ZEND_END_MODULE_GLOBALS(suhosin7) | 337 | ZEND_END_MODULE_GLOBALS(suhosin7) |
