Fix build with PHP 8.0

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-11-06 11:26:06 +00:00
parent 0898eed49d
commit 8058b23174
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=554226

View File

@ -0,0 +1,16 @@
--- phpc/phpc.h.orig 2016-08-29 19:02:44 UTC
+++ phpc/phpc.h
@@ -29,6 +29,13 @@
#error "Only PHP 5.2+ supported"
#endif
+#if PHP_MAJOR_VERSION >= 8
+#define TSRMLS_C
+#define TSRMLS_CC
+#define TSRMLS_DC
+#define TSRMLS_FETCH()
+#endif
+
/* no operation */
#define PHPC_NOOP ((void) 0)