Skip to content

Commit e62a78c

Browse files
committed
review
1 parent aa2476a commit e62a78c

3 files changed

Lines changed: 27 additions & 41 deletions

File tree

.clang-format-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
frankenphp_arginfo.h

.gitleaksignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/github/workspace/docs/mercure.md:jwt:65
1+
/github/workspace/docs/mercure.md:jwt:88

frankenphp_arginfo.h

Lines changed: 25 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
11
/* This is a generated file, edit the .stub.php file instead.
22
* Stub hash: cd534a8394f535a600bf45a333955d23b5154756 */
33

4-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_frankenphp_handle_request, 0, 1,
5-
_IS_BOOL, 0)
6-
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
4+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_frankenphp_handle_request, 0, 1, _IS_BOOL, 0)
5+
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
76
ZEND_END_ARG_INFO()
87

98
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_headers_send, 0, 0, IS_LONG, 0)
10-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, status, IS_LONG, 0, "200")
9+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, status, IS_LONG, 0, "200")
1110
ZEND_END_ARG_INFO()
1211

13-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_frankenphp_finish_request, 0, 0,
14-
_IS_BOOL, 0)
12+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_frankenphp_finish_request, 0, 0, _IS_BOOL, 0)
1513
ZEND_END_ARG_INFO()
1614

1715
#define arginfo_fastcgi_finish_request arginfo_frankenphp_finish_request
1816

19-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_frankenphp_request_headers, 0,
20-
0, IS_ARRAY, 0)
17+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_frankenphp_request_headers, 0, 0, IS_ARRAY, 0)
2118
ZEND_END_ARG_INFO()
2219

2320
#define arginfo_apache_request_headers arginfo_frankenphp_request_headers
2421

2522
#define arginfo_getallheaders arginfo_frankenphp_request_headers
2623

27-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_frankenphp_response_headers, 0,
28-
0, MAY_BE_ARRAY | MAY_BE_BOOL)
24+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_frankenphp_response_headers, 0, 0, MAY_BE_ARRAY|MAY_BE_BOOL)
2925
ZEND_END_ARG_INFO()
3026

3127
#define arginfo_apache_response_headers arginfo_frankenphp_response_headers
3228

33-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mercure_publish, 0, 1,
34-
IS_STRING, 0)
35-
ZEND_ARG_TYPE_MASK(0, topics, MAY_BE_STRING | MAY_BE_ARRAY, NULL)
36-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, data, IS_STRING, 0, "\'\'")
37-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, private, _IS_BOOL, 0, "false")
38-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, id, IS_STRING, 1, "null")
39-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 1, "null")
40-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retry, IS_LONG, 1, "null")
29+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mercure_publish, 0, 1, IS_STRING, 0)
30+
ZEND_ARG_TYPE_MASK(0, topics, MAY_BE_STRING|MAY_BE_ARRAY, NULL)
31+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, data, IS_STRING, 0, "\'\'")
32+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, private, _IS_BOOL, 0, "false")
33+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, id, IS_STRING, 1, "null")
34+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 1, "null")
35+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retry, IS_LONG, 1, "null")
4136
ZEND_END_ARG_INFO()
4237

4338
ZEND_FUNCTION(frankenphp_handle_request);
@@ -48,25 +43,15 @@ ZEND_FUNCTION(frankenphp_response_headers);
4843
ZEND_FUNCTION(mercure_publish);
4944

5045
static const zend_function_entry ext_functions[] = {
51-
ZEND_FE(frankenphp_handle_request, arginfo_frankenphp_handle_request)
52-
ZEND_FE(headers_send, arginfo_headers_send) ZEND_FE(
53-
frankenphp_finish_request, arginfo_frankenphp_finish_request)
54-
ZEND_RAW_FENTRY("fastcgi_finish_request",
55-
zif_frankenphp_finish_request,
56-
arginfo_fastcgi_finish_request, 0, NULL,
57-
NULL) ZEND_FE(frankenphp_request_headers,
58-
arginfo_frankenphp_request_headers)
59-
ZEND_RAW_FENTRY("apache_request_headers",
60-
zif_frankenphp_request_headers,
61-
arginfo_apache_request_headers, 0, NULL, NULL)
62-
ZEND_RAW_FENTRY("getallheaders",
63-
zif_frankenphp_request_headers,
64-
arginfo_getallheaders, 0, NULL, NULL)
65-
ZEND_FE(frankenphp_response_headers,
66-
arginfo_frankenphp_response_headers)
67-
ZEND_RAW_FENTRY("apache_response_headers",
68-
zif_frankenphp_response_headers,
69-
arginfo_apache_response_headers, 0,
70-
NULL, NULL)
71-
ZEND_FE(mercure_publish,
72-
arginfo_mercure_publish) ZEND_FE_END};
46+
ZEND_FE(frankenphp_handle_request, arginfo_frankenphp_handle_request)
47+
ZEND_FE(headers_send, arginfo_headers_send)
48+
ZEND_FE(frankenphp_finish_request, arginfo_frankenphp_finish_request)
49+
ZEND_RAW_FENTRY("fastcgi_finish_request", zif_frankenphp_finish_request, arginfo_fastcgi_finish_request, 0, NULL, NULL)
50+
ZEND_FE(frankenphp_request_headers, arginfo_frankenphp_request_headers)
51+
ZEND_RAW_FENTRY("apache_request_headers", zif_frankenphp_request_headers, arginfo_apache_request_headers, 0, NULL, NULL)
52+
ZEND_RAW_FENTRY("getallheaders", zif_frankenphp_request_headers, arginfo_getallheaders, 0, NULL, NULL)
53+
ZEND_FE(frankenphp_response_headers, arginfo_frankenphp_response_headers)
54+
ZEND_RAW_FENTRY("apache_response_headers", zif_frankenphp_response_headers, arginfo_apache_response_headers, 0, NULL, NULL)
55+
ZEND_FE(mercure_publish, arginfo_mercure_publish)
56+
ZEND_FE_END
57+
};

0 commit comments

Comments
 (0)