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_sloppy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp_sloppy.c') diff --git a/src/sp_sloppy.c b/src/sp_sloppy.c index 5b36026..ac0cb8a 100644 --- a/src/sp_sloppy.c +++ b/src/sp_sloppy.c @@ -38,8 +38,8 @@ ZEND_API zend_op_array* sp_compile_file(zend_file_handle* file_handle, static void array_handler(INTERNAL_FUNCTION_PARAMETERS, const char *name, size_t size, - void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS)) { - void (*handler)(INTERNAL_FUNCTION_PARAMETERS); + zif_handler orig_handler) { + zif_handler handler; zval func_name; zval params[3]; zval *value, *array; -- cgit v1.3