File uwsgi-php82-php_module_startup-signature.patch of Package uwsgi

Index: uwsgi-2.0.21/plugins/php/php_plugin.c
===================================================================
--- uwsgi-2.0.21.orig/plugins/php/php_plugin.c
+++ uwsgi-2.0.21/plugins/php/php_plugin.c
@@ -607,7 +607,11 @@ static void activate_user_config(const c
 static int php_uwsgi_startup(sapi_module_struct *sapi_module)
 {
 
+#if ((PHP_MAJOR_VERSION >= 8) && (PHP_MINOR_VERSION >= 2))
+	if (php_module_startup(&uwsgi_sapi_module, &uwsgi_module_entry)==FAILURE) {
+#else
 	if (php_module_startup(&uwsgi_sapi_module, &uwsgi_module_entry, 1)==FAILURE) {
+#endif
 		return FAILURE;
 	} else {
 		return SUCCESS;
openSUSE Build Service is sponsored by