diff options
Diffstat (limited to 'post_handler.c')
| -rw-r--r-- | post_handler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/post_handler.c b/post_handler.c index 96f4b4a..a36efb4 100644 --- a/post_handler.c +++ b/post_handler.c | |||
| @@ -148,10 +148,10 @@ void suhosin_hook_post_handlers(TSRMLS_D) | |||
| 148 | 148 | ||
| 149 | /* we need to tell suhosin patch that there is a new valid destructor */ | 149 | /* we need to tell suhosin patch that there is a new valid destructor */ |
| 150 | /* therefore we have create HashTable that has this destructor */ | 150 | /* therefore we have create HashTable that has this destructor */ |
| 151 | zend_hash_init(&tempht, 0, NULL, suhosin_post_handler_modification, 0); | 151 | zend_hash_init(&tempht, 0, NULL, (dtor_func_t)suhosin_post_handler_modification, 0); |
| 152 | zend_hash_destroy(&tempht); | 152 | zend_hash_destroy(&tempht); |
| 153 | /* And now we can overwrite the destructor for post entries */ | 153 | /* And now we can overwrite the destructor for post entries */ |
| 154 | SG(known_post_content_types).pDestructor = suhosin_post_handler_modification; | 154 | SG(known_post_content_types).pDestructor = (dtor_func_t)suhosin_post_handler_modification; |
| 155 | 155 | ||
| 156 | /* we have to stop mbstring from replacing our post handler */ | 156 | /* we have to stop mbstring from replacing our post handler */ |
| 157 | if (zend_hash_find(EG(ini_directives), "mbstring.encoding_translation", sizeof("mbstring.encoding_translation"), (void **) &ini_entry) == FAILURE) { | 157 | if (zend_hash_find(EG(ini_directives), "mbstring.encoding_translation", sizeof("mbstring.encoding_translation"), (void **) &ini_entry) == FAILURE) { |
