php7_ext_wrapper.h adapt to php 8

posix_api
YuQing 2021-12-31 01:51:50 +08:00
parent 7fe16fd1b5
commit 59acf16fae
1 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,14 @@
#include <SAPI.h>
#include <php_ini.h>
#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)