diff options
Diffstat (limited to 'post_handler.c')
| -rw-r--r-- | post_handler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/post_handler.c b/post_handler.c index 737f33f..388a096 100644 --- a/post_handler.c +++ b/post_handler.c | |||
| @@ -46,7 +46,7 @@ SAPI_POST_HANDLER_FUNC(suhosin_std_post_handler) | |||
| 46 | { | 46 | { |
| 47 | char *var, *val, *e, *s, *p; | 47 | char *var, *val, *e, *s, *p; |
| 48 | zval *array_ptr = (zval *) arg; | 48 | zval *array_ptr = (zval *) arg; |
| 49 | #if PHP_VERSION_ID >= 50311 | 49 | #if 1 //PHP_VERSION_ID >= 50311 |
| 50 | long count = 0; | 50 | long count = 0; |
| 51 | #endif | 51 | #endif |
| 52 | if (SG(request_info).post_data == NULL) { | 52 | if (SG(request_info).post_data == NULL) { |
| @@ -61,7 +61,7 @@ last_value: | |||
| 61 | if ((val = memchr(s, '=', (p - s)))) { /* have a value */ | 61 | if ((val = memchr(s, '=', (p - s)))) { /* have a value */ |
| 62 | unsigned int val_len, new_val_len; | 62 | unsigned int val_len, new_val_len; |
| 63 | 63 | ||
| 64 | #if PHP_VERSION_ID >= 50311 | 64 | #if 1 //PHP_VERSION_ID >= 50311 |
| 65 | if (++count > PG(max_input_vars)) { | 65 | if (++count > PG(max_input_vars)) { |
| 66 | php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); | 66 | php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); |
| 67 | return; | 67 | return; |
| @@ -266,7 +266,7 @@ void suhosin_hook_post_handlers(TSRMLS_D) | |||
| 266 | HashTable tempht; | 266 | HashTable tempht; |
| 267 | zend_ini_entry *ini_entry; | 267 | zend_ini_entry *ini_entry; |
| 268 | 268 | ||
| 269 | #if PHP_MAJOR_VERSION > 5 || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 0) | 269 | #if 1 //PHP_MAJOR_VERSION > 5 || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 0) |
| 270 | sapi_unregister_post_entry(&suhosin_post_entries[0] TSRMLS_CC); | 270 | sapi_unregister_post_entry(&suhosin_post_entries[0] TSRMLS_CC); |
| 271 | sapi_unregister_post_entry(&suhosin_post_entries[1] TSRMLS_CC); | 271 | sapi_unregister_post_entry(&suhosin_post_entries[1] TSRMLS_CC); |
| 272 | sapi_register_post_entries(suhosin_post_entries TSRMLS_CC); | 272 | sapi_register_post_entries(suhosin_post_entries TSRMLS_CC); |
