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
@@ -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;
|
||||
}"
|
||||
|
||||
|
||||
@@ -31,6 +31,12 @@ NGINX Unit updated to 1.29.0.
|
||||
date="" time=""
|
||||
packager="Nginx Packaging <nginx-packaging@f5.com>">
|
||||
|
||||
<change type="feature">
|
||||
<para>
|
||||
compatibility with PHP 8.2.
|
||||
</para>
|
||||
</change>
|
||||
|
||||
<change type="feature">
|
||||
<para>
|
||||
support rack v3 in ruby applications.
|
||||
|
||||
@@ -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