[pkg-uWSGI-devel] Bug#1028092: Bug#1028092: uwsgi-plugin-php FTBFS with PHP 8.2
Alexandre Rossi
niol at zincube.net
Tue Jan 10 09:22:12 GMT 2023
Hi,
Thanks for reporting.
> /usr/src/uwsgi/plugins/php/php_plugin.c: In function ‘php_uwsgi_startup’:
> /usr/src/uwsgi/plugins/php/php_plugin.c:610:13: error: too many arguments to function ‘php_module_startup’
> 610 | if (php_module_startup(&uwsgi_sapi_module, &uwsgi_module_entry, 1)==FAILURE) {
> | ^~~~~~~~~~~~~~~~~~
> In file included from /usr/src/uwsgi/plugins/php/common.h:3,
> from /usr/src/uwsgi/plugins/php/php_plugin.c:1:
> /usr/include/php/20220829/main/php_main.h:28:20: note: declared here
> 28 | PHPAPI zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_module);
> | ^~~~~~~~~~~~~~~~~~
Seems to be related to:
========================
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.
(from https://raw.githubusercontent.com/php/php-src/PHP-8.2/UPGRADING.INTERNALS )
The fix seems straightforward, I'll see if I can provide a patch.
Thanks,
Alex
More information about the pkg-uWSGI-devel
mailing list