summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-06-02 16:16:35 +0200
committerAlejandro Colomar <alx@nginx.com>2022-10-19 12:59:49 +0200
commit48b6a7b311272896be9212e170fcee8d1da25e79 (patch)
treed3adebe03598ac40ccfab5d215cbfc0091e8d8c4 /auto/modules/php
parentf2213dbd1b51838ec6b59073d9d071a75def7858 (diff)
downloadunit-48b6a7b311272896be9212e170fcee8d1da25e79.tar.gz
unit-48b6a7b311272896be9212e170fcee8d1da25e79.tar.bz2
PHP: Fixed php_module_startup() call for PHP 8.2.
PHP 8.2 changed the prototype of the function, removing the last parameter. Signed-off-by: Remi Collet <remi@remirepo.net> Cc: Timo Stark <t.stark@nginx.com> Cc: George Peter Banyard <girgias@php.net> Tested-by: Andy Postnikov <apostnikov@gmail.com> Acked-by: Andy Postnikov <apostnikov@gmail.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
Diffstat (limited to '')
-rw-r--r--auto/modules/php4
1 files changed, 4 insertions, 0 deletions
diff --git a/auto/modules/php b/auto/modules/php
index e92a67cd..7d224ec1 100644
--- a/auto/modules/php
+++ b/auto/modules/php
@@ -149,7 +149,11 @@ nxt_feature_test="
#include <php_main.h>
int main() {
+ #if (PHP_VERSION_ID < 80200)
php_module_startup(NULL, NULL, 0);
+ #else
+ php_module_startup(NULL, NULL);
+ #endif
return 0;
}"