summaryrefslogtreecommitdiff
path: root/post_handler.c
diff options
context:
space:
mode:
authorStefan Esser2012-02-12 10:57:29 +0100
committerStefan Esser2012-02-12 10:57:29 +0100
commita20e7b6842d95de535da4448bd4302dedf23d25d (patch)
treec19d00c47a4a6fc6124e160ea94004acbd19c840 /post_handler.c
parentaf51a7f576f0cec1d2c94b9bbb3dfb46dd466a66 (diff)
Fix some compiler warnings
Diffstat (limited to '')
-rw-r--r--post_handler.c4
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) {