a3dc14c43d
- added patches fix https://github.com/unbit/uwsgi/commit/509a0fdd12870d0bf5b4c1ef7d1f7f + uwsgi-php82-php_module_startup-signature.patch OBS-URL: https://build.opensuse.org/request/show/1085034 OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=116
17 lines
615 B
Diff
17 lines
615 B
Diff
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;
|