diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-13 05:42:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-13 05:42:42 +0100 |
commit | 37cf2a8dbadd546a550aac7c8079c3f77427cb63 (patch) | |
tree | 01b4d88cf5ffbb0cc059bd4e1cbca9d8352ee900 /www-servers/uwsgi/files/uwsgi-2.0.21-php82.patch | |
parent | 7bb99171a372e6cff495daf7dbef2e03d216be29 (diff) |
gentoo auto-resync : 13:04:2023 - 05:42:42
Diffstat (limited to 'www-servers/uwsgi/files/uwsgi-2.0.21-php82.patch')
-rw-r--r-- | www-servers/uwsgi/files/uwsgi-2.0.21-php82.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/www-servers/uwsgi/files/uwsgi-2.0.21-php82.patch b/www-servers/uwsgi/files/uwsgi-2.0.21-php82.patch new file mode 100644 index 000000000000..8a830389b989 --- /dev/null +++ b/www-servers/uwsgi/files/uwsgi-2.0.21-php82.patch @@ -0,0 +1,41 @@ +https://github.com/unbit/uwsgi/commit/6fba62a3ad947b656bb4379f8f903e90c7b01346 + +From 6fba62a3ad947b656bb4379f8f903e90c7b01346 Mon Sep 17 00:00:00 2001 +From: Alexandre Rossi <alexandre.rossi@gmail.com> +Date: Tue, 10 Jan 2023 10:01:05 +0000 +Subject: [PATCH] plugins/php: fix build with PHP >= 8.2 + +from https://raw.githubusercontent.com/php/php-src/PHP-8.2/UPGRADING.INTERNALS: + +======================== 5. SAPI changes ======================== + +* The signature of php_module_startup() has changed from + +int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_modules, uint32_t num_additional_modules) + +to + +zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_module) + +as only one additional module was ever provided. +--- + plugins/php/php_plugin.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/plugins/php/php_plugin.c b/plugins/php/php_plugin.c +index 9bb8befad..4d3930b82 100644 +--- a/plugins/php/php_plugin.c ++++ b/plugins/php/php_plugin.c +@@ -607,7 +607,11 @@ static void activate_user_config(const char *filename, const char *doc_root, siz + 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; + |