From 60b25188efaf2ae2b8d240b94148c52985b6ec27 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 17 Apr 2020 09:22:18 +0200 Subject: fix build with PHP 8 using patches from https://github.com/nginx/unit/pull/425 --- 0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch (limited to '0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch') diff --git a/0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch b/0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch new file mode 100644 index 0000000..430ad21 --- /dev/null +++ b/0002-define-TSRMLS_-macro-dropped-in-PHP-8.patch @@ -0,0 +1,30 @@ +From 3ef107ac8bea3043e493786e2f8ad20366b0ad7d Mon Sep 17 00:00:00 2001 +From: Remi Collet +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 + -- cgit