diff options
author | Remi Collet <remi@remirepo.net> | 2025-09-26 15:32:00 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-09-26 15:32:00 +0200 |
commit | 1b15e5932611ca10fe1d4384a569f04358e414ad (patch) | |
tree | 083f40f7eb07899286f330cec8d04c570fcf68f1 /unit-php85.patch | |
parent | 27008b685e2bd38512afedabeda384664756761e (diff) |
Diffstat (limited to 'unit-php85.patch')
-rw-r--r-- | unit-php85.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/unit-php85.patch b/unit-php85.patch new file mode 100644 index 0000000..1f56f89 --- /dev/null +++ b/unit-php85.patch @@ -0,0 +1,28 @@ +From ad736f9f4fddd844aed1eb6ee8a9dc88df5533fb Mon Sep 17 00:00:00 2001 +From: Andy Postnikov <apostnikov@gmail.com> +Date: Thu, 25 Sep 2025 01:36:53 +0200 +Subject: [PATCH] php: Add a new to 8.5 SAPI callback, pre_request_init + +Closes: https://github.com/nginx/unit/issues/1660 +[ Commit message tweak - Andrew ] +Signed-off-by: Andrew Clayton <ac@sigsegv.uk> +--- + src/nxt_php_sapi.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c +index 926ebe99d..57ba87ae5 100644 +--- a/src/nxt_php_sapi.c ++++ b/src/nxt_php_sapi.c +@@ -340,7 +340,10 @@ static sapi_module_struct nxt_php_sapi_module = + + NULL, /* ini_entries */ + NULL, /* additional_functions */ +- NULL /* input_filter_init */ ++ NULL, /* input_filter_init */ ++#if (PHP_VERSION_ID >= 80500) ++ NULL, /* pre_request_init */ ++#endif + }; + + |