File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,11 @@ if /bin/sh -c "${NXT_PHP_CONFIG} --version" >> $NXT_AUTOCONF_ERR 2>&1; then
100
100
`${NXT_PHP_CONFIG} --libs`"
101
101
102
102
else
103
- NXT_PHP_LIB="-lphp${NXT_PHP_VERSION%%.*}"
103
+ if [ $NXT_PHP_MAJOR_VERSION -ge 8 ]; then
104
+ NXT_PHP_LIB="-lphp"
105
+ else
106
+ NXT_PHP_LIB="-lphp${NXT_PHP_VERSION%%.*}"
107
+ fi
104
108
105
109
if [ "$NXT_PHP_LIB_PATH" != "" ]; then
106
110
# "php-config --ldflags" does not contain path to libphp, but
Original file line number Diff line number Diff line change 29
29
#define NXT_PHP7 1
30
30
#endif
31
31
32
+ /* PHP 8 */
33
+ #ifndef TSRMLS_CC
34
+ #define TSRMLS_CC
35
+ #define TSRMLS_DC
36
+ #define TSRMLS_D void
37
+ #define TSRMLS_C
38
+ #endif
39
+
32
40
33
41
typedef struct {
34
42
nxt_str_t root ;
You can’t perform that action at this time.
0 commit comments