summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2025-08-29 20:41:06 +0200
committerAndy Postnikov <apostnikov@gmail.com>2025-09-03 18:26:44 +0200
commitde14dc7272d7650954223e75e4a6f8cdaa482514 (patch)
tree37f7e56f7940ae75f49fc22a8eea14d141f2b0c3 /src
parent58c27f20d6df801787548ca622e42db28a5bd4c2 (diff)
downloadunit-de14dc7272d7650954223e75e4a6f8cdaa482514.tar.gz
unit-de14dc7272d7650954223e75e4a6f8cdaa482514.tar.bz2
php: Fix building with 8.5
Closes: https://github.com/nginx/unit/issues/1646 Link: <https://github.com/php/php-src/commit/f4e2e91d4b6d28448104500819b68edf58bd263c> Signed-off-by: Andy Postnikov <apostnikov@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/nxt_php_sapi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c
index c20e074c..926ebe99 100644
--- a/src/nxt_php_sapi.c
+++ b/src/nxt_php_sapi.c
@@ -93,8 +93,10 @@ static nxt_int_t nxt_php_alter_option(nxt_str_t *name, nxt_str_t *value,
#ifdef NXT_PHP8
static void nxt_php_disable_functions(nxt_str_t *str);
#endif
+#if (PHP_VERSION_ID < 80500)
static void nxt_php_disable(nxt_task_t *task, const char *type,
nxt_str_t *value, char **ptr, nxt_php_disable_t disable);
+#endif
static nxt_int_t nxt_php_dirname(const nxt_str_t *file, nxt_str_t *dir);
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)
}
if (nxt_str_eq(&name, "disable_classes", 15)) {
+#if (PHP_VERSION_ID < 80500)
nxt_php_disable(task, "class", &value,
&PG(disable_classes),
zend_disable_class);
+#endif
continue;
}
}
@@ -817,6 +821,7 @@ nxt_php_disable_functions(nxt_str_t *str)
#endif
+#if (PHP_VERSION_ID < 80500)
static void
nxt_php_disable(nxt_task_t *task, const char *type, nxt_str_t *value,
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,
} while (c != '\0');
}
+#endif
static nxt_int_t