From 499a81914597f156fe9a67e47e3baf82a0af4bde Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 3 Sep 2018 15:38:51 +0200 Subject: Fix #241 segfault on 32-bit related to bad protype (#242) This should close #241 --- src/sp_disabled_functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp_disabled_functions.c') diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index 835776b..b8ec845 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c @@ -501,7 +501,7 @@ bool should_drop_on_ret(const zval* return_value, const sp_list_node* config, } ZEND_FUNCTION(check_disabled_function) { - void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); + zif_handler orig_handler; const char* current_function_name = get_active_function_name(TSRMLS_C); if (true == should_disable_ht( @@ -566,7 +566,7 @@ static int hook_functions(HashTable* to_hook_ht, HashTable* hooked_ht) { } ZEND_FUNCTION(eval_blacklist_callback) { - void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); + zif_handler orig_handler; const char* current_function_name = get_active_function_name(TSRMLS_C); zend_string* tmp = zend_string_init(current_function_name, strlen(current_function_name), 0); -- cgit v1.3