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_utils.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/sp_utils.h') diff --git a/src/sp_utils.h b/src/sp_utils.h index c094fac..d835905 100644 --- a/src/sp_utils.h +++ b/src/sp_utils.h @@ -54,10 +54,8 @@ void sp_log_disable(const char *restrict, const char *restrict, const zend_string *restrict, const sp_disabled_function *); void sp_log_disable_ret(const char *restrict, const zend_string *restrict, const sp_disabled_function *); -int hook_function(const char *, HashTable *, - void (*)(INTERNAL_FUNCTION_PARAMETERS)); -int hook_regexp(const sp_pcre *, HashTable *, - void (*)(INTERNAL_FUNCTION_PARAMETERS)); +int hook_function(const char *, HashTable *, zif_handler); +int hook_regexp(const sp_pcre *, HashTable *, zif_handler); bool check_is_in_eval_whitelist(const zend_string *const function_name); int sp_log_request(const zend_string *folder, const zend_string *text_repr, char *from); -- cgit v1.3