blob: 430ad211386c22591edc011bf25be93766947f2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From 3ef107ac8bea3043e493786e2f8ad20366b0ad7d Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Fri, 17 Apr 2020 09:16:03 +0200
Subject: [PATCH 2/2] define TSRMLS_* macro dropped in PHP 8
---
src/nxt_php_sapi.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c
index f505365..b059146 100644
--- a/src/nxt_php_sapi.c
+++ b/src/nxt_php_sapi.c
@@ -29,6 +29,13 @@
#define NXT_PHP7 1
#endif
+#ifndef TSRMLS_CC
+#define TSRMLS_CC
+#define TSRMLS_DC
+#define TSRMLS_D void
+#define TSRMLS_C
+#endif
+
typedef struct {
char *cookie;
nxt_str_t path_info;
--
2.25.2
|