summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorДамјан Георгиевски <gdamjan@gmail.com>2021-12-29 14:02:32 +0100
committerДамјан Георгиевски <gdamjan@gmail.com>2021-12-29 14:02:32 +0100
commit90766833f2bcd2a83039ed4e18501bfb52162e6c (patch)
tree315d9311c0137b62f2926decb116773466a08270 /plugins
parent1bb48fbe655e8f3962c2ee3908f7aa60f859efd0 (diff)
downloaduwsgi-90766833f2bcd2a83039ed4e18501bfb52162e6c.tar.gz
fix: missing arginfo when compiling against PHP 8
fixes https://github.com/unbit/uwsgi/issues/2356
Diffstat (limited to 'plugins')
-rw-r--r--plugins/php/php_plugin.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/plugins/php/php_plugin.c b/plugins/php/php_plugin.c
index 717d6317..d336addd 100644
--- a/plugins/php/php_plugin.c
+++ b/plugins/php/php_plugin.c
@@ -497,21 +497,24 @@ PHP_FUNCTION(uwsgi_signal) {
RETURN_NULL();
}
+ZEND_BEGIN_ARG_INFO_EX(arginfo_void, 0, 0, 0)
+ZEND_END_ARG_INFO()
+
zend_function_entry uwsgi_php_functions[] = {
- PHP_FE(uwsgi_version, NULL)
- PHP_FE(uwsgi_setprocname, NULL)
- PHP_FE(uwsgi_worker_id, NULL)
- PHP_FE(uwsgi_masterpid, NULL)
- PHP_FE(uwsgi_signal, NULL)
-
- PHP_FE(uwsgi_rpc, NULL)
-
- PHP_FE(uwsgi_cache_get, NULL)
- PHP_FE(uwsgi_cache_set, NULL)
- PHP_FE(uwsgi_cache_update, NULL)
- PHP_FE(uwsgi_cache_del, NULL)
- PHP_FE(uwsgi_cache_clear, NULL)
- PHP_FE(uwsgi_cache_exists, NULL)
+ PHP_FE(uwsgi_version, arginfo_void)
+ PHP_FE(uwsgi_setprocname, arginfo_void)
+ PHP_FE(uwsgi_worker_id, arginfo_void)
+ PHP_FE(uwsgi_masterpid, arginfo_void)
+ PHP_FE(uwsgi_signal, arginfo_void)
+
+ PHP_FE(uwsgi_rpc, arginfo_void)
+
+ PHP_FE(uwsgi_cache_get, arginfo_void)
+ PHP_FE(uwsgi_cache_set, arginfo_void)
+ PHP_FE(uwsgi_cache_update, arginfo_void)
+ PHP_FE(uwsgi_cache_del, arginfo_void)
+ PHP_FE(uwsgi_cache_clear, arginfo_void)
+ PHP_FE(uwsgi_cache_exists, arginfo_void)
{ NULL, NULL, NULL},
};