diff options
| author | Stefan Esser | 2012-02-12 11:21:42 +0100 |
|---|---|---|
| committer | Stefan Esser | 2012-02-12 11:21:42 +0100 |
| commit | 6edb26c052914a7cbaa4bd0d77bff93e68bd9a98 (patch) | |
| tree | 6772d7e38dead7f5f83c8b17809f46b1da098e78 /execute.c | |
| parent | bb630acdb0019e4bd2fdd0ade18cb77288d9422d (diff) | |
Add some variable drop statistics as requested by users
Diffstat (limited to '')
| -rw-r--r-- | execute.c | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -364,6 +364,15 @@ static void suhosin_execute_ex(zend_op_array *op_array, int zo, long dummy TSRML | |||
| 364 | zend_uint orig_code_type; | 364 | zend_uint orig_code_type; |
| 365 | unsigned long *suhosin_flags = NULL; | 365 | unsigned long *suhosin_flags = NULL; |
| 366 | 366 | ||
| 367 | /* log variable dropping statistics */ | ||
| 368 | if (SUHOSIN_G(att_request_variables)-SUHOSIN_G(cur_request_variables) > 0) { | ||
| 369 | suhosin_log(S_VARS, "dropped %u request variables - (%u in GET, %u in POST, %u in COOKIE)", | ||
| 370 | SUHOSIN_G(att_request_variables)-SUHOSIN_G(cur_request_variables), | ||
| 371 | SUHOSIN_G(att_get_vars)-SUHOSIN_G(cur_get_vars), | ||
| 372 | SUHOSIN_G(att_post_vars)-SUHOSIN_G(cur_post_vars), | ||
| 373 | SUHOSIN_G(att_cookie_vars)-SUHOSIN_G(cur_cookie_vars)); | ||
| 374 | } | ||
| 375 | |||
| 367 | if (SUHOSIN_G(abort_request) && !SUHOSIN_G(simulation) && SUHOSIN_G(filter_action)) { | 376 | if (SUHOSIN_G(abort_request) && !SUHOSIN_G(simulation) && SUHOSIN_G(filter_action)) { |
| 368 | 377 | ||
| 369 | char *action = SUHOSIN_G(filter_action); | 378 | char *action = SUHOSIN_G(filter_action); |
