From 93cc22bfb57fc881889165ead1adc94dda30dfc4 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 24 Oct 2019 20:51:56 +0200 Subject: Improve a bit the compatibility with php8 - Apparently, TSRMLS_C and TSRMLS_FETCH aren't defined anymore, so we have to manually define them to nothing - PHP8 constified a bit some strings, which is great, so we should do the same to avoid warnings --- src/php_snuffleupagus.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/php_snuffleupagus.h') diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index 1c45653..0141a87 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h @@ -53,6 +53,10 @@ #if PHP_VERSION_ID < 70200 typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS); #endif +#if PHP_VERSION_ID >= 80000 +#define TSRMLS_FETCH() +#define TSRMLS_C +#endif #include "sp_pcre_compat.h" #include "sp_list.h" -- cgit v1.3