Closes GH-5295.
#include "fopen_wrappers.h"
#include "http_status_codes.h"
#include "ext/standard/php_standard.h"
+#include "ext/standard/dl_arginfo.h"
#include "ext/standard/url.h"
#ifdef PHP_WIN32
#include "php_getopt.h"
#include "fastcgi.h"
+#include "cgi_main_arginfo.h"
#if defined(PHP_WIN32) && defined(HAVE_OPENSSL)
# include "openssl/applink.c"
};
/* }}} */
-/* {{{ arginfo ext/standard/dl.c */
-ZEND_BEGIN_ARG_INFO(arginfo_dl, 0)
- ZEND_ARG_INFO(0, extension_filename)
-ZEND_END_ARG_INFO()
-/* }}} */
-
static const zend_function_entry additional_functions[] = {
ZEND_FE(dl, arginfo_dl)
PHP_FE_END
}
/* }}} */
-ZEND_BEGIN_ARG_INFO(arginfo_no_args, 0)
-ZEND_END_ARG_INFO()
-
-static const zend_function_entry cgi_functions[] = {
- PHP_FE(apache_child_terminate, arginfo_no_args)
- PHP_FE(apache_request_headers, arginfo_no_args)
- PHP_FE(apache_response_headers, arginfo_no_args)
- PHP_FALIAS(getallheaders, apache_request_headers, arginfo_no_args)
- PHP_FE_END
-};
-
static zend_module_entry cgi_module_entry = {
STANDARD_MODULE_HEADER,
"cgi-fcgi",
- cgi_functions,
+ ext_functions,
PHP_MINIT(cgi),
PHP_MSHUTDOWN(cgi),
NULL,
--- /dev/null
+<?php
+
+/** @generate-function-entries */
+
+function apache_child_terminate(): void {}
+
+function apache_request_headers(): array {}
+
+/** @alias apache_request_headers */
+function getallheaders(): array {}
+
+function apache_response_headers(): array {}
--- /dev/null
+/* This is a generated file, edit the .stub.php file instead.
+ * Stub hash: ccb32ad91944af15fe1fcb44b97c28a79c1aad86 */
+
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_apache_child_terminate, 0, 0, IS_VOID, 0)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_apache_request_headers, 0, 0, IS_ARRAY, 0)
+ZEND_END_ARG_INFO()
+
+#define arginfo_getallheaders arginfo_apache_request_headers
+
+#define arginfo_apache_response_headers arginfo_apache_request_headers
+
+
+ZEND_FUNCTION(apache_child_terminate);
+ZEND_FUNCTION(apache_request_headers);
+ZEND_FUNCTION(apache_response_headers);
+
+
+static const zend_function_entry ext_functions[] = {
+ ZEND_FE(apache_child_terminate, arginfo_apache_child_terminate)
+ ZEND_FE(apache_request_headers, arginfo_apache_request_headers)
+ ZEND_FALIAS(getallheaders, apache_request_headers, arginfo_getallheaders)
+ ZEND_FE(apache_response_headers, arginfo_apache_response_headers)
+ ZEND_FE_END
+};
#include "php_main.h"
#include "fopen_wrappers.h"
#include "ext/standard/php_standard.h"
+#include "ext/standard/dl_arginfo.h"
#include "cli.h"
#ifdef PHP_WIN32
#include <io.h>
#include "ps_title.h"
#include "php_cli_process_title.h"
+#include "php_cli_process_title_arginfo.h"
#ifndef PHP_WIN32
# define php_select(m, r, w, e, t) select(m, r, w, e, t)
};
/* }}} */
-/* {{{ arginfo ext/standard/dl.c */
-ZEND_BEGIN_ARG_INFO(arginfo_dl, 0)
- ZEND_ARG_INFO(0, extension_filename)
-ZEND_END_ARG_INFO()
-/* }}} */
-
static const zend_function_entry additional_functions[] = {
ZEND_FE(dl, arginfo_dl)
PHP_FE(cli_set_process_title, arginfo_cli_set_process_title)
#ifndef PHP_PS_TITLE_HEADER
#define PHP_PS_TITLE_HEADER
-ZEND_BEGIN_ARG_INFO(arginfo_cli_set_process_title, 0)
- ZEND_ARG_INFO(0, title)
-ZEND_END_ARG_INFO()
-
-ZEND_BEGIN_ARG_INFO(arginfo_cli_get_process_title, 0)
-ZEND_END_ARG_INFO()
-
PHP_FUNCTION(cli_set_process_title);
PHP_FUNCTION(cli_get_process_title);
--- /dev/null
+<?php
+
+function cli_set_process_title(string $title): bool {}
+
+function cli_get_process_title(): ?string {}
--- /dev/null
+/* This is a generated file, edit the .stub.php file instead.
+ * Stub hash: ee776e0c54fe4b66a98b3a0203af11c5f3082e38 */
+
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_cli_set_process_title, 0, 1, _IS_BOOL, 0)
+ ZEND_ARG_TYPE_INFO(0, title, IS_STRING, 0)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_cli_get_process_title, 0, 0, IS_STRING, 1)
+ZEND_END_ARG_INFO()
#include "php_http_parser.h"
#include "php_cli_server.h"
+#include "php_cli_server_arginfo.h"
#include "mime_type_map.h"
#include "php_cli_process_title.h"
+#include "php_cli_process_title_arginfo.h"
#define OUTPUT_NOT_CHECKED -1
#define OUTPUT_IS_TTY 1
};
/* }}} */
-ZEND_BEGIN_ARG_INFO(arginfo_no_args, 0)
-ZEND_END_ARG_INFO()
-
const zend_function_entry server_additional_functions[] = {
- PHP_FE(cli_set_process_title, arginfo_cli_set_process_title)
- PHP_FE(cli_get_process_title, arginfo_cli_get_process_title)
- PHP_FE(apache_request_headers, arginfo_no_args)
- PHP_FE(apache_response_headers, arginfo_no_args)
- PHP_FALIAS(getallheaders, apache_request_headers, arginfo_no_args)
+ PHP_FE(cli_set_process_title, arginfo_cli_set_process_title)
+ PHP_FE(cli_get_process_title, arginfo_cli_get_process_title)
+ PHP_FE(apache_request_headers, arginfo_apache_request_headers)
+ PHP_FE(apache_response_headers, arginfo_apache_response_headers)
+ PHP_FALIAS(getallheaders, apache_request_headers, arginfo_getallheaders)
PHP_FE_END
};
--- /dev/null
+<?php
+
+function apache_request_headers(): array {}
+
+function apache_response_headers(): array {}
+
+function getallheaders(): array {}
--- /dev/null
+/* This is a generated file, edit the .stub.php file instead.
+ * Stub hash: 60cd531d36a34fe7c51982e9ec40b45d2a2a4ce7 */
+
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_apache_request_headers, 0, 0, IS_ARRAY, 0)
+ZEND_END_ARG_INFO()
+
+#define arginfo_apache_response_headers arginfo_apache_request_headers
+
+#define arginfo_getallheaders arginfo_apache_request_headers
#include "php_embed.h"
#include "ext/standard/php_standard.h"
+#include "ext/standard/dl_arginfo.h"
#ifdef PHP_WIN32
#include <io.h>
};
/* }}} */
-/* {{{ arginfo ext/standard/dl.c */
-ZEND_BEGIN_ARG_INFO(arginfo_dl, 0)
- ZEND_ARG_INFO(0, extension_filename)
-ZEND_END_ARG_INFO()
-/* }}} */
-
static const zend_function_entry additional_functions[] = {
ZEND_FE(dl, arginfo_dl)
ZEND_FE_END