From 59acf16fae3d8fab832c300fa6bada9e0b2b27ab Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Fri, 31 Dec 2021 01:51:50 +0800 Subject: [PATCH] php7_ext_wrapper.h adapt to php 8 --- src/php7_ext_wrapper.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/php7_ext_wrapper.h b/src/php7_ext_wrapper.h index 0e03029..899017b 100644 --- a/src/php7_ext_wrapper.h +++ b/src/php7_ext_wrapper.h @@ -34,6 +34,14 @@ #include #include +#ifndef TSRMLS_DC +#define TSRMLS_DC +#endif + +#ifndef TSRMLS_CC +#define TSRMLS_CC +#endif + #if PHP_MAJOR_VERSION < 7 typedef int zend_size_t; #define ZEND_RETURN_STRING(s, dup) RETURN_STRING(s, dup)