Skip to content

Commit 08e5525

Browse files
committed
Fix building with PHP 8.5
1 parent a76c8a7 commit 08e5525

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/nxt_php_sapi.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ static nxt_int_t nxt_php_alter_option(nxt_str_t *name, nxt_str_t *value,
9393
#ifdef NXT_PHP8
9494
static void nxt_php_disable_functions(nxt_str_t *str);
9595
#endif
96+
#if (PHP_VERSION_ID < 80500)
9697
static void nxt_php_disable(nxt_task_t *task, const char *type,
9798
nxt_str_t *value, char **ptr, nxt_php_disable_t disable);
99+
#endif
98100

99101
static nxt_int_t nxt_php_dirname(const nxt_str_t *file, nxt_str_t *dir);
100102
static void nxt_php_str_trim_trail(nxt_str_t *str, u_char t);
@@ -710,9 +712,11 @@ nxt_php_set_options(nxt_task_t *task, nxt_conf_value_t *options, int type)
710712
}
711713

712714
if (nxt_str_eq(&name, "disable_classes", 15)) {
715+
#if (PHP_VERSION_ID < 80500)
713716
nxt_php_disable(task, "class", &value,
714717
&PG(disable_classes),
715718
zend_disable_class);
719+
#endif
716720
continue;
717721
}
718722
}
@@ -817,6 +821,7 @@ nxt_php_disable_functions(nxt_str_t *str)
817821
#endif
818822

819823

824+
#if (PHP_VERSION_ID < 80500)
820825
static void
821826
nxt_php_disable(nxt_task_t *task, const char *type, nxt_str_t *value,
822827
char **ptr, nxt_php_disable_t disable)
@@ -867,6 +872,7 @@ nxt_php_disable(nxt_task_t *task, const char *type, nxt_str_t *value,
867872

868873
} while (c != '\0');
869874
}
875+
#endif
870876

871877

872878
static nxt_int_t

0 commit comments

Comments
 (0)