xref: /PHP-8.0/ext/session/session_arginfo.h (revision 6fb08f46)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 4221e895bdb0c3e903b7688f79e2863fc0788cee */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_name, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
5 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, name, IS_STRING, 1, "null")
6 ZEND_END_ARG_INFO()
7 
8 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_module_name, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
9 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, module, IS_STRING, 1, "null")
10 ZEND_END_ARG_INFO()
11 
12 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_save_path, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
13 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, path, IS_STRING, 1, "null")
14 ZEND_END_ARG_INFO()
15 
16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_id, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
17 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, id, IS_STRING, 1, "null")
18 ZEND_END_ARG_INFO()
19 
20 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_create_id, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
21 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, prefix, IS_STRING, 0, "\"\"")
22 ZEND_END_ARG_INFO()
23 
24 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_regenerate_id, 0, 0, _IS_BOOL, 0)
25 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, delete_old_session, _IS_BOOL, 0, "false")
26 ZEND_END_ARG_INFO()
27 
28 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_decode, 0, 1, _IS_BOOL, 0)
29 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
30 ZEND_END_ARG_INFO()
31 
32 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_encode, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
33 ZEND_END_ARG_INFO()
34 
35 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_destroy, 0, 0, _IS_BOOL, 0)
36 ZEND_END_ARG_INFO()
37 
38 #define arginfo_session_unset arginfo_session_destroy
39 
40 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_gc, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
41 ZEND_END_ARG_INFO()
42 
43 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_get_cookie_params, 0, 0, IS_ARRAY, 0)
44 ZEND_END_ARG_INFO()
45 
46 #define arginfo_session_write_close arginfo_session_destroy
47 
48 #define arginfo_session_abort arginfo_session_destroy
49 
50 #define arginfo_session_reset arginfo_session_destroy
51 
52 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_status, 0, 0, IS_LONG, 0)
53 ZEND_END_ARG_INFO()
54 
55 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_register_shutdown, 0, 0, IS_VOID, 0)
56 ZEND_END_ARG_INFO()
57 
58 #define arginfo_session_commit arginfo_session_destroy
59 
60 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_set_save_handler, 0, 1, _IS_BOOL, 0)
61 	ZEND_ARG_INFO(0, open)
62 	ZEND_ARG_INFO(0, close)
63 	ZEND_ARG_TYPE_INFO(0, read, IS_CALLABLE, 0)
64 	ZEND_ARG_TYPE_INFO(0, write, IS_CALLABLE, 0)
65 	ZEND_ARG_TYPE_INFO(0, destroy, IS_CALLABLE, 0)
66 	ZEND_ARG_TYPE_INFO(0, gc, IS_CALLABLE, 0)
67 	ZEND_ARG_TYPE_INFO(0, create_sid, IS_CALLABLE, 0)
68 	ZEND_ARG_TYPE_INFO(0, validate_sid, IS_CALLABLE, 0)
69 	ZEND_ARG_TYPE_INFO(0, update_timestamp, IS_CALLABLE, 0)
70 ZEND_END_ARG_INFO()
71 
72 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_cache_limiter, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
73 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 1, "null")
74 ZEND_END_ARG_INFO()
75 
76 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_cache_expire, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
77 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_LONG, 1, "null")
78 ZEND_END_ARG_INFO()
79 
80 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_set_cookie_params, 0, 1, _IS_BOOL, 0)
81 	ZEND_ARG_TYPE_MASK(0, lifetime_or_options, MAY_BE_ARRAY|MAY_BE_LONG, NULL)
82 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, path, IS_STRING, 1, "null")
83 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, domain, IS_STRING, 1, "null")
84 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, secure, _IS_BOOL, 1, "null")
85 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, httponly, _IS_BOOL, 1, "null")
86 ZEND_END_ARG_INFO()
87 
88 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_start, 0, 0, _IS_BOOL, 0)
89 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
90 ZEND_END_ARG_INFO()
91 
92 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SessionHandlerInterface_open, 0, 0, 2)
93 	ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
94 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
95 ZEND_END_ARG_INFO()
96 
97 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SessionHandlerInterface_close, 0, 0, 0)
98 ZEND_END_ARG_INFO()
99 
100 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SessionHandlerInterface_read, 0, 0, 1)
101 	ZEND_ARG_TYPE_INFO(0, id, IS_STRING, 0)
102 ZEND_END_ARG_INFO()
103 
104 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SessionHandlerInterface_write, 0, 0, 2)
105 	ZEND_ARG_TYPE_INFO(0, id, IS_STRING, 0)
106 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
107 ZEND_END_ARG_INFO()
108 
109 #define arginfo_class_SessionHandlerInterface_destroy arginfo_class_SessionHandlerInterface_read
110 
111 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SessionHandlerInterface_gc, 0, 0, 1)
112 	ZEND_ARG_TYPE_INFO(0, max_lifetime, IS_LONG, 0)
113 ZEND_END_ARG_INFO()
114 
115 #define arginfo_class_SessionIdInterface_create_sid arginfo_class_SessionHandlerInterface_close
116 
117 #define arginfo_class_SessionUpdateTimestampHandlerInterface_validateId arginfo_class_SessionHandlerInterface_read
118 
119 #define arginfo_class_SessionUpdateTimestampHandlerInterface_updateTimestamp arginfo_class_SessionHandlerInterface_write
120 
121 #define arginfo_class_SessionHandler_open arginfo_class_SessionHandlerInterface_open
122 
123 #define arginfo_class_SessionHandler_close arginfo_class_SessionHandlerInterface_close
124 
125 #define arginfo_class_SessionHandler_read arginfo_class_SessionHandlerInterface_read
126 
127 #define arginfo_class_SessionHandler_write arginfo_class_SessionHandlerInterface_write
128 
129 #define arginfo_class_SessionHandler_destroy arginfo_class_SessionHandlerInterface_read
130 
131 #define arginfo_class_SessionHandler_gc arginfo_class_SessionHandlerInterface_gc
132 
133 #define arginfo_class_SessionHandler_create_sid arginfo_class_SessionHandlerInterface_close
134 
135 
136 ZEND_FUNCTION(session_name);
137 ZEND_FUNCTION(session_module_name);
138 ZEND_FUNCTION(session_save_path);
139 ZEND_FUNCTION(session_id);
140 ZEND_FUNCTION(session_create_id);
141 ZEND_FUNCTION(session_regenerate_id);
142 ZEND_FUNCTION(session_decode);
143 ZEND_FUNCTION(session_encode);
144 ZEND_FUNCTION(session_destroy);
145 ZEND_FUNCTION(session_unset);
146 ZEND_FUNCTION(session_gc);
147 ZEND_FUNCTION(session_get_cookie_params);
148 ZEND_FUNCTION(session_write_close);
149 ZEND_FUNCTION(session_abort);
150 ZEND_FUNCTION(session_reset);
151 ZEND_FUNCTION(session_status);
152 ZEND_FUNCTION(session_register_shutdown);
153 ZEND_FUNCTION(session_set_save_handler);
154 ZEND_FUNCTION(session_cache_limiter);
155 ZEND_FUNCTION(session_cache_expire);
156 ZEND_FUNCTION(session_set_cookie_params);
157 ZEND_FUNCTION(session_start);
158 ZEND_METHOD(SessionHandler, open);
159 ZEND_METHOD(SessionHandler, close);
160 ZEND_METHOD(SessionHandler, read);
161 ZEND_METHOD(SessionHandler, write);
162 ZEND_METHOD(SessionHandler, destroy);
163 ZEND_METHOD(SessionHandler, gc);
164 ZEND_METHOD(SessionHandler, create_sid);
165 
166 
167 static const zend_function_entry ext_functions[] = {
168 	ZEND_FE(session_name, arginfo_session_name)
169 	ZEND_FE(session_module_name, arginfo_session_module_name)
170 	ZEND_FE(session_save_path, arginfo_session_save_path)
171 	ZEND_FE(session_id, arginfo_session_id)
172 	ZEND_FE(session_create_id, arginfo_session_create_id)
173 	ZEND_FE(session_regenerate_id, arginfo_session_regenerate_id)
174 	ZEND_FE(session_decode, arginfo_session_decode)
175 	ZEND_FE(session_encode, arginfo_session_encode)
176 	ZEND_FE(session_destroy, arginfo_session_destroy)
177 	ZEND_FE(session_unset, arginfo_session_unset)
178 	ZEND_FE(session_gc, arginfo_session_gc)
179 	ZEND_FE(session_get_cookie_params, arginfo_session_get_cookie_params)
180 	ZEND_FE(session_write_close, arginfo_session_write_close)
181 	ZEND_FE(session_abort, arginfo_session_abort)
182 	ZEND_FE(session_reset, arginfo_session_reset)
183 	ZEND_FE(session_status, arginfo_session_status)
184 	ZEND_FE(session_register_shutdown, arginfo_session_register_shutdown)
185 	ZEND_FALIAS(session_commit, session_write_close, arginfo_session_commit)
186 	ZEND_FE(session_set_save_handler, arginfo_session_set_save_handler)
187 	ZEND_FE(session_cache_limiter, arginfo_session_cache_limiter)
188 	ZEND_FE(session_cache_expire, arginfo_session_cache_expire)
189 	ZEND_FE(session_set_cookie_params, arginfo_session_set_cookie_params)
190 	ZEND_FE(session_start, arginfo_session_start)
191 	ZEND_FE_END
192 };
193 
194 
195 static const zend_function_entry class_SessionHandlerInterface_methods[] = {
196 	ZEND_ABSTRACT_ME_WITH_FLAGS(SessionHandlerInterface, open, arginfo_class_SessionHandlerInterface_open, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
197 	ZEND_ABSTRACT_ME_WITH_FLAGS(SessionHandlerInterface, close, arginfo_class_SessionHandlerInterface_close, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
198 	ZEND_ABSTRACT_ME_WITH_FLAGS(SessionHandlerInterface, read, arginfo_class_SessionHandlerInterface_read, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
199 	ZEND_ABSTRACT_ME_WITH_FLAGS(SessionHandlerInterface, write, arginfo_class_SessionHandlerInterface_write, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
200 	ZEND_ABSTRACT_ME_WITH_FLAGS(SessionHandlerInterface, destroy, arginfo_class_SessionHandlerInterface_destroy, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
201 	ZEND_ABSTRACT_ME_WITH_FLAGS(SessionHandlerInterface, gc, arginfo_class_SessionHandlerInterface_gc, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
202 	ZEND_FE_END
203 };
204 
205 
206 static const zend_function_entry class_SessionIdInterface_methods[] = {
207 	ZEND_ABSTRACT_ME_WITH_FLAGS(SessionIdInterface, create_sid, arginfo_class_SessionIdInterface_create_sid, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
208 	ZEND_FE_END
209 };
210 
211 
212 static const zend_function_entry class_SessionUpdateTimestampHandlerInterface_methods[] = {
213 	ZEND_ABSTRACT_ME_WITH_FLAGS(SessionUpdateTimestampHandlerInterface, validateId, arginfo_class_SessionUpdateTimestampHandlerInterface_validateId, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
214 	ZEND_ABSTRACT_ME_WITH_FLAGS(SessionUpdateTimestampHandlerInterface, updateTimestamp, arginfo_class_SessionUpdateTimestampHandlerInterface_updateTimestamp, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
215 	ZEND_FE_END
216 };
217 
218 
219 static const zend_function_entry class_SessionHandler_methods[] = {
220 	ZEND_ME(SessionHandler, open, arginfo_class_SessionHandler_open, ZEND_ACC_PUBLIC)
221 	ZEND_ME(SessionHandler, close, arginfo_class_SessionHandler_close, ZEND_ACC_PUBLIC)
222 	ZEND_ME(SessionHandler, read, arginfo_class_SessionHandler_read, ZEND_ACC_PUBLIC)
223 	ZEND_ME(SessionHandler, write, arginfo_class_SessionHandler_write, ZEND_ACC_PUBLIC)
224 	ZEND_ME(SessionHandler, destroy, arginfo_class_SessionHandler_destroy, ZEND_ACC_PUBLIC)
225 	ZEND_ME(SessionHandler, gc, arginfo_class_SessionHandler_gc, ZEND_ACC_PUBLIC)
226 	ZEND_ME(SessionHandler, create_sid, arginfo_class_SessionHandler_create_sid, ZEND_ACC_PUBLIC)
227 	ZEND_FE_END
228 };
229