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>
This commit is contained in:
Remi Collet
2022-06-02 16:16:35 +02:00
committed by Alejandro Colomar
parent f2213dbd1b
commit 48b6a7b311
3 changed files with 14 additions and 0 deletions

View File

@@ -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;
}"