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/php_snuffleupagus.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/php_snuffleupagus.h') diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index bc927a0..0bdf602 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h @@ -25,6 +25,11 @@ #include "zend_string.h" #include "zend_extensions.h" +/* Compatibility */ +#if PHP_VERSION_ID < 70200 +typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS); +#endif + #include "sp_pcre_compat.h" #include "sp_list.h" #include "sp_tree.h" -- cgit v1.3