From 9f95d68ca3be3a798a033b3fc53d4c2a4e53d368 Mon Sep 17 00:00:00 2001 From: Stephen Reay Date: Mon, 12 Aug 2019 00:42:26 +0700 Subject: [PATCH] Added arginfo stubs for sysvmsg Closes GH-4522. --- ext/sysvmsg/sysvmsg.c | 45 +---------------------------------- ext/sysvmsg/sysvmsg.stub.php | 32 +++++++++++++++++++++++++ ext/sysvmsg/sysvmsg_arginfo.h | 43 +++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 44 deletions(-) create mode 100644 ext/sysvmsg/sysvmsg.stub.php create mode 100644 ext/sysvmsg/sysvmsg_arginfo.h diff --git a/ext/sysvmsg/sysvmsg.c b/ext/sysvmsg/sysvmsg.c index d113ef56d53..7abe042e614 100644 --- a/ext/sysvmsg/sysvmsg.c +++ b/ext/sysvmsg/sysvmsg.c @@ -24,6 +24,7 @@ #include "php_globals.h" #include "ext/standard/info.h" #include "php_sysvmsg.h" +#include "sysvmsg_arginfo.h" #include "ext/standard/php_var.h" #include "zend_smart_str.h" @@ -62,50 +63,6 @@ struct php_msgbuf { /* True global resources - no need for thread safety here */ static int le_sysvmsg; -/* {{{ arginfo */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_get_queue, 0, 0, 1) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, perms) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_send, 0, 0, 3) - ZEND_ARG_INFO(0, queue) - ZEND_ARG_INFO(0, msgtype) - ZEND_ARG_INFO(0, message) - ZEND_ARG_INFO(0, serialize) - ZEND_ARG_INFO(0, blocking) - ZEND_ARG_INFO(1, errorcode) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_receive, 0, 0, 5) - ZEND_ARG_INFO(0, queue) - ZEND_ARG_INFO(0, desiredmsgtype) - ZEND_ARG_INFO(1, msgtype) - ZEND_ARG_INFO(0, maxsize) - ZEND_ARG_INFO(1, message) - ZEND_ARG_INFO(0, unserialize) - ZEND_ARG_INFO(0, flags) - ZEND_ARG_INFO(1, errorcode) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_remove_queue, 0, 0, 1) - ZEND_ARG_INFO(0, queue) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_stat_queue, 0, 0, 1) - ZEND_ARG_INFO(0, queue) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_set_queue, 0, 0, 2) - ZEND_ARG_INFO(0, queue) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_queue_exists, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() -/* }}} */ - /* {{{ sysvmsg_functions[] * * Every user visible function must have an entry in sysvmsg_functions[]. diff --git a/ext/sysvmsg/sysvmsg.stub.php b/ext/sysvmsg/sysvmsg.stub.php new file mode 100644 index 00000000000..a85090d96dc --- /dev/null +++ b/ext/sysvmsg/sysvmsg.stub.php @@ -0,0 +1,32 @@ +