archrelease: copy trunk to community-any
[arch-community.git] / uwsgi / repos / community-x86_64 / uwsgi-2.0.22-php8.2.patch
blob66a8e49e74f46a2c744c0728c5a8ac2fdbb69049
1 diff -uNr a/plugins/php/php_plugin.c b/plugins/php/php_plugin.c
2 --- a/plugins/php/php_plugin.c 2022-10-06 19:52:07.237882916 +0200
3 +++ b/plugins/php/php_plugin.c 2022-10-06 19:56:29.232418542 +0200
4 @@ -607,7 +607,11 @@
5 static int php_uwsgi_startup(sapi_module_struct *sapi_module)
8 +#if PHP_VERSION_ID >= 80200
9 + if (php_module_startup(&uwsgi_sapi_module, &uwsgi_module_entry)==FAILURE) {
10 +#else
11 if (php_module_startup(&uwsgi_sapi_module, &uwsgi_module_entry, 1)==FAILURE) {
12 +#endif
13 return FAILURE;
14 } else {
15 return SUCCESS;