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:
committed by
Alejandro Colomar
parent
f2213dbd1b
commit
48b6a7b311
@@ -1150,7 +1150,11 @@ nxt_php_vcwd_chdir(nxt_unit_request_info_t *req, u_char *dir)
|
||||
static int
|
||||
nxt_php_startup(sapi_module_struct *sapi_module)
|
||||
{
|
||||
#if (PHP_VERSION_ID < 80200)
|
||||
return php_module_startup(sapi_module, &nxt_php_unit_module, 1);
|
||||
#else
|
||||
return php_module_startup(sapi_module, &nxt_php_unit_module);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user