xref: /PHP-8.3/ext/zip/php_zip_arginfo.h (revision ae3646db)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 95564c667a51a548f5d43025c90546b991970ddd */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_open, 0, 0, 1)
5 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
6 ZEND_END_ARG_INFO()
7 
8 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zip_close, 0, 1, IS_VOID, 0)
9 	ZEND_ARG_INFO(0, zip)
10 ZEND_END_ARG_INFO()
11 
12 ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_read, 0, 0, 1)
13 	ZEND_ARG_INFO(0, zip)
14 ZEND_END_ARG_INFO()
15 
16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zip_entry_open, 0, 2, _IS_BOOL, 0)
17 	ZEND_ARG_INFO(0, zip_dp)
18 	ZEND_ARG_INFO(0, zip_entry)
19 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_STRING, 0, "\"rb\"")
20 ZEND_END_ARG_INFO()
21 
22 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zip_entry_close, 0, 1, _IS_BOOL, 0)
23 	ZEND_ARG_INFO(0, zip_entry)
24 ZEND_END_ARG_INFO()
25 
26 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zip_entry_read, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
27 	ZEND_ARG_INFO(0, zip_entry)
28 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, len, IS_LONG, 0, "1024")
29 ZEND_END_ARG_INFO()
30 
31 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zip_entry_name, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
32 	ZEND_ARG_INFO(0, zip_entry)
33 ZEND_END_ARG_INFO()
34 
35 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zip_entry_compressedsize, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
36 	ZEND_ARG_INFO(0, zip_entry)
37 ZEND_END_ARG_INFO()
38 
39 #define arginfo_zip_entry_filesize arginfo_zip_entry_compressedsize
40 
41 #define arginfo_zip_entry_compressionmethod arginfo_zip_entry_name
42 
43 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_open, 0, 1, MAY_BE_BOOL|MAY_BE_LONG)
44 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
45 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
46 ZEND_END_ARG_INFO()
47 
48 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setPassword, 0, 1, _IS_BOOL, 0)
49 	ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
50 ZEND_END_ARG_INFO()
51 
52 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_close, 0, 0, _IS_BOOL, 0)
53 ZEND_END_ARG_INFO()
54 
55 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_count, 0, 0, IS_LONG, 0)
56 ZEND_END_ARG_INFO()
57 
58 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_getStatusString, 0, 0, IS_STRING, 0)
59 ZEND_END_ARG_INFO()
60 
61 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_clearError, 0, 0, IS_VOID, 0)
62 ZEND_END_ARG_INFO()
63 
64 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_addEmptyDir, 0, 1, _IS_BOOL, 0)
65 	ZEND_ARG_TYPE_INFO(0, dirname, IS_STRING, 0)
66 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
67 ZEND_END_ARG_INFO()
68 
69 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_addFromString, 0, 2, _IS_BOOL, 0)
70 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
71 	ZEND_ARG_TYPE_INFO(0, content, IS_STRING, 0)
72 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "ZipArchive::FL_OVERWRITE")
73 ZEND_END_ARG_INFO()
74 
75 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_addFile, 0, 1, _IS_BOOL, 0)
76 	ZEND_ARG_TYPE_INFO(0, filepath, IS_STRING, 0)
77 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, entryname, IS_STRING, 0, "\"\"")
78 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, start, IS_LONG, 0, "0")
79 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "ZipArchive::LENGTH_TO_END")
80 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "ZipArchive::FL_OVERWRITE")
81 ZEND_END_ARG_INFO()
82 
83 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_replaceFile, 0, 2, _IS_BOOL, 0)
84 	ZEND_ARG_TYPE_INFO(0, filepath, IS_STRING, 0)
85 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
86 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, start, IS_LONG, 0, "0")
87 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "ZipArchive::LENGTH_TO_END")
88 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
89 ZEND_END_ARG_INFO()
90 
91 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_addGlob, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
92 	ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
93 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
94 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
95 ZEND_END_ARG_INFO()
96 
97 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_addPattern, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
98 	ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
99 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, path, IS_STRING, 0, "\".\"")
100 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
101 ZEND_END_ARG_INFO()
102 
103 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_renameIndex, 0, 2, _IS_BOOL, 0)
104 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
105 	ZEND_ARG_TYPE_INFO(0, new_name, IS_STRING, 0)
106 ZEND_END_ARG_INFO()
107 
108 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_renameName, 0, 2, _IS_BOOL, 0)
109 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
110 	ZEND_ARG_TYPE_INFO(0, new_name, IS_STRING, 0)
111 ZEND_END_ARG_INFO()
112 
113 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setArchiveComment, 0, 1, _IS_BOOL, 0)
114 	ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0)
115 ZEND_END_ARG_INFO()
116 
117 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_getArchiveComment, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
118 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
119 ZEND_END_ARG_INFO()
120 
121 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setArchiveFlag, 0, 2, _IS_BOOL, 0)
122 	ZEND_ARG_TYPE_INFO(0, flag, IS_LONG, 0)
123 	ZEND_ARG_TYPE_INFO(0, value, IS_LONG, 0)
124 ZEND_END_ARG_INFO()
125 
126 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_getArchiveFlag, 0, 1, IS_LONG, 0)
127 	ZEND_ARG_TYPE_INFO(0, flag, IS_LONG, 0)
128 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
129 ZEND_END_ARG_INFO()
130 
131 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setCommentIndex, 0, 2, _IS_BOOL, 0)
132 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
133 	ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0)
134 ZEND_END_ARG_INFO()
135 
136 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setCommentName, 0, 2, _IS_BOOL, 0)
137 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
138 	ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0)
139 ZEND_END_ARG_INFO()
140 
141 #if defined(HAVE_SET_MTIME)
142 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setMtimeIndex, 0, 2, _IS_BOOL, 0)
143 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
144 	ZEND_ARG_TYPE_INFO(0, timestamp, IS_LONG, 0)
145 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
146 ZEND_END_ARG_INFO()
147 #endif
148 
149 #if defined(HAVE_SET_MTIME)
150 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setMtimeName, 0, 2, _IS_BOOL, 0)
151 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
152 	ZEND_ARG_TYPE_INFO(0, timestamp, IS_LONG, 0)
153 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
154 ZEND_END_ARG_INFO()
155 #endif
156 
157 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_getCommentIndex, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
158 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
159 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
160 ZEND_END_ARG_INFO()
161 
162 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_getCommentName, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
163 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
164 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
165 ZEND_END_ARG_INFO()
166 
167 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_deleteIndex, 0, 1, _IS_BOOL, 0)
168 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
169 ZEND_END_ARG_INFO()
170 
171 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_deleteName, 0, 1, _IS_BOOL, 0)
172 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
173 ZEND_END_ARG_INFO()
174 
175 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_statName, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
176 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
177 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
178 ZEND_END_ARG_INFO()
179 
180 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_statIndex, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
181 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
182 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
183 ZEND_END_ARG_INFO()
184 
185 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_locateName, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
186 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
187 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
188 ZEND_END_ARG_INFO()
189 
190 #define arginfo_class_ZipArchive_getNameIndex arginfo_class_ZipArchive_getCommentIndex
191 
192 #define arginfo_class_ZipArchive_unchangeArchive arginfo_class_ZipArchive_close
193 
194 #define arginfo_class_ZipArchive_unchangeAll arginfo_class_ZipArchive_close
195 
196 #define arginfo_class_ZipArchive_unchangeIndex arginfo_class_ZipArchive_deleteIndex
197 
198 #define arginfo_class_ZipArchive_unchangeName arginfo_class_ZipArchive_deleteName
199 
200 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_extractTo, 0, 1, _IS_BOOL, 0)
201 	ZEND_ARG_TYPE_INFO(0, pathto, IS_STRING, 0)
202 	ZEND_ARG_TYPE_MASK(0, files, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
203 ZEND_END_ARG_INFO()
204 
205 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_getFromName, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
206 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
207 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, len, IS_LONG, 0, "0")
208 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
209 ZEND_END_ARG_INFO()
210 
211 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ZipArchive_getFromIndex, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
212 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
213 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, len, IS_LONG, 0, "0")
214 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
215 ZEND_END_ARG_INFO()
216 
217 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_getStreamIndex, 0, 0, 1)
218 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
219 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
220 ZEND_END_ARG_INFO()
221 
222 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_getStreamName, 0, 0, 1)
223 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
224 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
225 ZEND_END_ARG_INFO()
226 
227 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_getStream, 0, 0, 1)
228 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
229 ZEND_END_ARG_INFO()
230 
231 #if defined(ZIP_OPSYS_DEFAULT)
232 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setExternalAttributesName, 0, 3, _IS_BOOL, 0)
233 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
234 	ZEND_ARG_TYPE_INFO(0, opsys, IS_LONG, 0)
235 	ZEND_ARG_TYPE_INFO(0, attr, IS_LONG, 0)
236 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
237 ZEND_END_ARG_INFO()
238 #endif
239 
240 #if defined(ZIP_OPSYS_DEFAULT)
241 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setExternalAttributesIndex, 0, 3, _IS_BOOL, 0)
242 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
243 	ZEND_ARG_TYPE_INFO(0, opsys, IS_LONG, 0)
244 	ZEND_ARG_TYPE_INFO(0, attr, IS_LONG, 0)
245 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
246 ZEND_END_ARG_INFO()
247 #endif
248 
249 #if defined(ZIP_OPSYS_DEFAULT)
250 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_getExternalAttributesName, 0, 3, _IS_BOOL, 0)
251 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
252 	ZEND_ARG_INFO(1, opsys)
253 	ZEND_ARG_INFO(1, attr)
254 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
255 ZEND_END_ARG_INFO()
256 #endif
257 
258 #if defined(ZIP_OPSYS_DEFAULT)
259 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_getExternalAttributesIndex, 0, 3, _IS_BOOL, 0)
260 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
261 	ZEND_ARG_INFO(1, opsys)
262 	ZEND_ARG_INFO(1, attr)
263 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
264 ZEND_END_ARG_INFO()
265 #endif
266 
267 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setCompressionName, 0, 2, _IS_BOOL, 0)
268 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
269 	ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0)
270 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compflags, IS_LONG, 0, "0")
271 ZEND_END_ARG_INFO()
272 
273 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setCompressionIndex, 0, 2, _IS_BOOL, 0)
274 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
275 	ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0)
276 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compflags, IS_LONG, 0, "0")
277 ZEND_END_ARG_INFO()
278 
279 #if defined(HAVE_ENCRYPTION)
280 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setEncryptionName, 0, 2, _IS_BOOL, 0)
281 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
282 	ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0)
283 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, password, IS_STRING, 1, "null")
284 ZEND_END_ARG_INFO()
285 #endif
286 
287 #if defined(HAVE_ENCRYPTION)
288 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setEncryptionIndex, 0, 2, _IS_BOOL, 0)
289 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
290 	ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0)
291 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, password, IS_STRING, 1, "null")
292 ZEND_END_ARG_INFO()
293 #endif
294 
295 #if defined(HAVE_PROGRESS_CALLBACK)
296 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_registerProgressCallback, 0, 2, _IS_BOOL, 0)
297 	ZEND_ARG_TYPE_INFO(0, rate, IS_DOUBLE, 0)
298 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
299 ZEND_END_ARG_INFO()
300 #endif
301 
302 #if defined(HAVE_CANCEL_CALLBACK)
303 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_registerCancelCallback, 0, 1, _IS_BOOL, 0)
304 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
305 ZEND_END_ARG_INFO()
306 #endif
307 
308 #if defined(HAVE_METHOD_SUPPORTED)
309 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_isCompressionMethodSupported, 0, 1, _IS_BOOL, 0)
310 	ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0)
311 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enc, _IS_BOOL, 0, "true")
312 ZEND_END_ARG_INFO()
313 #endif
314 
315 #if defined(HAVE_METHOD_SUPPORTED)
316 #define arginfo_class_ZipArchive_isEncryptionMethodSupported arginfo_class_ZipArchive_isCompressionMethodSupported
317 #endif
318 
319 
320 ZEND_FUNCTION(zip_open);
321 ZEND_FUNCTION(zip_close);
322 ZEND_FUNCTION(zip_read);
323 ZEND_FUNCTION(zip_entry_open);
324 ZEND_FUNCTION(zip_entry_close);
325 ZEND_FUNCTION(zip_entry_read);
326 ZEND_FUNCTION(zip_entry_name);
327 ZEND_FUNCTION(zip_entry_compressedsize);
328 ZEND_FUNCTION(zip_entry_filesize);
329 ZEND_FUNCTION(zip_entry_compressionmethod);
330 ZEND_METHOD(ZipArchive, open);
331 ZEND_METHOD(ZipArchive, setPassword);
332 ZEND_METHOD(ZipArchive, close);
333 ZEND_METHOD(ZipArchive, count);
334 ZEND_METHOD(ZipArchive, getStatusString);
335 ZEND_METHOD(ZipArchive, clearError);
336 ZEND_METHOD(ZipArchive, addEmptyDir);
337 ZEND_METHOD(ZipArchive, addFromString);
338 ZEND_METHOD(ZipArchive, addFile);
339 ZEND_METHOD(ZipArchive, replaceFile);
340 ZEND_METHOD(ZipArchive, addGlob);
341 ZEND_METHOD(ZipArchive, addPattern);
342 ZEND_METHOD(ZipArchive, renameIndex);
343 ZEND_METHOD(ZipArchive, renameName);
344 ZEND_METHOD(ZipArchive, setArchiveComment);
345 ZEND_METHOD(ZipArchive, getArchiveComment);
346 ZEND_METHOD(ZipArchive, setArchiveFlag);
347 ZEND_METHOD(ZipArchive, getArchiveFlag);
348 ZEND_METHOD(ZipArchive, setCommentIndex);
349 ZEND_METHOD(ZipArchive, setCommentName);
350 #if defined(HAVE_SET_MTIME)
351 ZEND_METHOD(ZipArchive, setMtimeIndex);
352 #endif
353 #if defined(HAVE_SET_MTIME)
354 ZEND_METHOD(ZipArchive, setMtimeName);
355 #endif
356 ZEND_METHOD(ZipArchive, getCommentIndex);
357 ZEND_METHOD(ZipArchive, getCommentName);
358 ZEND_METHOD(ZipArchive, deleteIndex);
359 ZEND_METHOD(ZipArchive, deleteName);
360 ZEND_METHOD(ZipArchive, statName);
361 ZEND_METHOD(ZipArchive, statIndex);
362 ZEND_METHOD(ZipArchive, locateName);
363 ZEND_METHOD(ZipArchive, getNameIndex);
364 ZEND_METHOD(ZipArchive, unchangeArchive);
365 ZEND_METHOD(ZipArchive, unchangeAll);
366 ZEND_METHOD(ZipArchive, unchangeIndex);
367 ZEND_METHOD(ZipArchive, unchangeName);
368 ZEND_METHOD(ZipArchive, extractTo);
369 ZEND_METHOD(ZipArchive, getFromName);
370 ZEND_METHOD(ZipArchive, getFromIndex);
371 ZEND_METHOD(ZipArchive, getStreamIndex);
372 ZEND_METHOD(ZipArchive, getStreamName);
373 ZEND_METHOD(ZipArchive, getStream);
374 #if defined(ZIP_OPSYS_DEFAULT)
375 ZEND_METHOD(ZipArchive, setExternalAttributesName);
376 #endif
377 #if defined(ZIP_OPSYS_DEFAULT)
378 ZEND_METHOD(ZipArchive, setExternalAttributesIndex);
379 #endif
380 #if defined(ZIP_OPSYS_DEFAULT)
381 ZEND_METHOD(ZipArchive, getExternalAttributesName);
382 #endif
383 #if defined(ZIP_OPSYS_DEFAULT)
384 ZEND_METHOD(ZipArchive, getExternalAttributesIndex);
385 #endif
386 ZEND_METHOD(ZipArchive, setCompressionName);
387 ZEND_METHOD(ZipArchive, setCompressionIndex);
388 #if defined(HAVE_ENCRYPTION)
389 ZEND_METHOD(ZipArchive, setEncryptionName);
390 #endif
391 #if defined(HAVE_ENCRYPTION)
392 ZEND_METHOD(ZipArchive, setEncryptionIndex);
393 #endif
394 #if defined(HAVE_PROGRESS_CALLBACK)
395 ZEND_METHOD(ZipArchive, registerProgressCallback);
396 #endif
397 #if defined(HAVE_CANCEL_CALLBACK)
398 ZEND_METHOD(ZipArchive, registerCancelCallback);
399 #endif
400 #if defined(HAVE_METHOD_SUPPORTED)
401 ZEND_METHOD(ZipArchive, isCompressionMethodSupported);
402 #endif
403 #if defined(HAVE_METHOD_SUPPORTED)
404 ZEND_METHOD(ZipArchive, isEncryptionMethodSupported);
405 #endif
406 
407 
408 static const zend_function_entry ext_functions[] = {
409 	ZEND_DEP_FE(zip_open, arginfo_zip_open)
410 	ZEND_DEP_FE(zip_close, arginfo_zip_close)
411 	ZEND_DEP_FE(zip_read, arginfo_zip_read)
412 	ZEND_DEP_FE(zip_entry_open, arginfo_zip_entry_open)
413 	ZEND_DEP_FE(zip_entry_close, arginfo_zip_entry_close)
414 	ZEND_DEP_FE(zip_entry_read, arginfo_zip_entry_read)
415 	ZEND_DEP_FE(zip_entry_name, arginfo_zip_entry_name)
416 	ZEND_DEP_FE(zip_entry_compressedsize, arginfo_zip_entry_compressedsize)
417 	ZEND_DEP_FE(zip_entry_filesize, arginfo_zip_entry_filesize)
418 	ZEND_DEP_FE(zip_entry_compressionmethod, arginfo_zip_entry_compressionmethod)
419 	ZEND_FE_END
420 };
421 
422 
423 static const zend_function_entry class_ZipArchive_methods[] = {
424 	ZEND_ME(ZipArchive, open, arginfo_class_ZipArchive_open, ZEND_ACC_PUBLIC)
425 	ZEND_ME(ZipArchive, setPassword, arginfo_class_ZipArchive_setPassword, ZEND_ACC_PUBLIC)
426 	ZEND_ME(ZipArchive, close, arginfo_class_ZipArchive_close, ZEND_ACC_PUBLIC)
427 	ZEND_ME(ZipArchive, count, arginfo_class_ZipArchive_count, ZEND_ACC_PUBLIC)
428 	ZEND_ME(ZipArchive, getStatusString, arginfo_class_ZipArchive_getStatusString, ZEND_ACC_PUBLIC)
429 	ZEND_ME(ZipArchive, clearError, arginfo_class_ZipArchive_clearError, ZEND_ACC_PUBLIC)
430 	ZEND_ME(ZipArchive, addEmptyDir, arginfo_class_ZipArchive_addEmptyDir, ZEND_ACC_PUBLIC)
431 	ZEND_ME(ZipArchive, addFromString, arginfo_class_ZipArchive_addFromString, ZEND_ACC_PUBLIC)
432 	ZEND_ME(ZipArchive, addFile, arginfo_class_ZipArchive_addFile, ZEND_ACC_PUBLIC)
433 	ZEND_ME(ZipArchive, replaceFile, arginfo_class_ZipArchive_replaceFile, ZEND_ACC_PUBLIC)
434 	ZEND_ME(ZipArchive, addGlob, arginfo_class_ZipArchive_addGlob, ZEND_ACC_PUBLIC)
435 	ZEND_ME(ZipArchive, addPattern, arginfo_class_ZipArchive_addPattern, ZEND_ACC_PUBLIC)
436 	ZEND_ME(ZipArchive, renameIndex, arginfo_class_ZipArchive_renameIndex, ZEND_ACC_PUBLIC)
437 	ZEND_ME(ZipArchive, renameName, arginfo_class_ZipArchive_renameName, ZEND_ACC_PUBLIC)
438 	ZEND_ME(ZipArchive, setArchiveComment, arginfo_class_ZipArchive_setArchiveComment, ZEND_ACC_PUBLIC)
439 	ZEND_ME(ZipArchive, getArchiveComment, arginfo_class_ZipArchive_getArchiveComment, ZEND_ACC_PUBLIC)
440 	ZEND_ME(ZipArchive, setArchiveFlag, arginfo_class_ZipArchive_setArchiveFlag, ZEND_ACC_PUBLIC)
441 	ZEND_ME(ZipArchive, getArchiveFlag, arginfo_class_ZipArchive_getArchiveFlag, ZEND_ACC_PUBLIC)
442 	ZEND_ME(ZipArchive, setCommentIndex, arginfo_class_ZipArchive_setCommentIndex, ZEND_ACC_PUBLIC)
443 	ZEND_ME(ZipArchive, setCommentName, arginfo_class_ZipArchive_setCommentName, ZEND_ACC_PUBLIC)
444 #if defined(HAVE_SET_MTIME)
445 	ZEND_ME(ZipArchive, setMtimeIndex, arginfo_class_ZipArchive_setMtimeIndex, ZEND_ACC_PUBLIC)
446 #endif
447 #if defined(HAVE_SET_MTIME)
448 	ZEND_ME(ZipArchive, setMtimeName, arginfo_class_ZipArchive_setMtimeName, ZEND_ACC_PUBLIC)
449 #endif
450 	ZEND_ME(ZipArchive, getCommentIndex, arginfo_class_ZipArchive_getCommentIndex, ZEND_ACC_PUBLIC)
451 	ZEND_ME(ZipArchive, getCommentName, arginfo_class_ZipArchive_getCommentName, ZEND_ACC_PUBLIC)
452 	ZEND_ME(ZipArchive, deleteIndex, arginfo_class_ZipArchive_deleteIndex, ZEND_ACC_PUBLIC)
453 	ZEND_ME(ZipArchive, deleteName, arginfo_class_ZipArchive_deleteName, ZEND_ACC_PUBLIC)
454 	ZEND_ME(ZipArchive, statName, arginfo_class_ZipArchive_statName, ZEND_ACC_PUBLIC)
455 	ZEND_ME(ZipArchive, statIndex, arginfo_class_ZipArchive_statIndex, ZEND_ACC_PUBLIC)
456 	ZEND_ME(ZipArchive, locateName, arginfo_class_ZipArchive_locateName, ZEND_ACC_PUBLIC)
457 	ZEND_ME(ZipArchive, getNameIndex, arginfo_class_ZipArchive_getNameIndex, ZEND_ACC_PUBLIC)
458 	ZEND_ME(ZipArchive, unchangeArchive, arginfo_class_ZipArchive_unchangeArchive, ZEND_ACC_PUBLIC)
459 	ZEND_ME(ZipArchive, unchangeAll, arginfo_class_ZipArchive_unchangeAll, ZEND_ACC_PUBLIC)
460 	ZEND_ME(ZipArchive, unchangeIndex, arginfo_class_ZipArchive_unchangeIndex, ZEND_ACC_PUBLIC)
461 	ZEND_ME(ZipArchive, unchangeName, arginfo_class_ZipArchive_unchangeName, ZEND_ACC_PUBLIC)
462 	ZEND_ME(ZipArchive, extractTo, arginfo_class_ZipArchive_extractTo, ZEND_ACC_PUBLIC)
463 	ZEND_ME(ZipArchive, getFromName, arginfo_class_ZipArchive_getFromName, ZEND_ACC_PUBLIC)
464 	ZEND_ME(ZipArchive, getFromIndex, arginfo_class_ZipArchive_getFromIndex, ZEND_ACC_PUBLIC)
465 	ZEND_ME(ZipArchive, getStreamIndex, arginfo_class_ZipArchive_getStreamIndex, ZEND_ACC_PUBLIC)
466 	ZEND_ME(ZipArchive, getStreamName, arginfo_class_ZipArchive_getStreamName, ZEND_ACC_PUBLIC)
467 	ZEND_ME(ZipArchive, getStream, arginfo_class_ZipArchive_getStream, ZEND_ACC_PUBLIC)
468 #if defined(ZIP_OPSYS_DEFAULT)
469 	ZEND_ME(ZipArchive, setExternalAttributesName, arginfo_class_ZipArchive_setExternalAttributesName, ZEND_ACC_PUBLIC)
470 #endif
471 #if defined(ZIP_OPSYS_DEFAULT)
472 	ZEND_ME(ZipArchive, setExternalAttributesIndex, arginfo_class_ZipArchive_setExternalAttributesIndex, ZEND_ACC_PUBLIC)
473 #endif
474 #if defined(ZIP_OPSYS_DEFAULT)
475 	ZEND_ME(ZipArchive, getExternalAttributesName, arginfo_class_ZipArchive_getExternalAttributesName, ZEND_ACC_PUBLIC)
476 #endif
477 #if defined(ZIP_OPSYS_DEFAULT)
478 	ZEND_ME(ZipArchive, getExternalAttributesIndex, arginfo_class_ZipArchive_getExternalAttributesIndex, ZEND_ACC_PUBLIC)
479 #endif
480 	ZEND_ME(ZipArchive, setCompressionName, arginfo_class_ZipArchive_setCompressionName, ZEND_ACC_PUBLIC)
481 	ZEND_ME(ZipArchive, setCompressionIndex, arginfo_class_ZipArchive_setCompressionIndex, ZEND_ACC_PUBLIC)
482 #if defined(HAVE_ENCRYPTION)
483 	ZEND_ME(ZipArchive, setEncryptionName, arginfo_class_ZipArchive_setEncryptionName, ZEND_ACC_PUBLIC)
484 #endif
485 #if defined(HAVE_ENCRYPTION)
486 	ZEND_ME(ZipArchive, setEncryptionIndex, arginfo_class_ZipArchive_setEncryptionIndex, ZEND_ACC_PUBLIC)
487 #endif
488 #if defined(HAVE_PROGRESS_CALLBACK)
489 	ZEND_ME(ZipArchive, registerProgressCallback, arginfo_class_ZipArchive_registerProgressCallback, ZEND_ACC_PUBLIC)
490 #endif
491 #if defined(HAVE_CANCEL_CALLBACK)
492 	ZEND_ME(ZipArchive, registerCancelCallback, arginfo_class_ZipArchive_registerCancelCallback, ZEND_ACC_PUBLIC)
493 #endif
494 #if defined(HAVE_METHOD_SUPPORTED)
495 	ZEND_ME(ZipArchive, isCompressionMethodSupported, arginfo_class_ZipArchive_isCompressionMethodSupported, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
496 #endif
497 #if defined(HAVE_METHOD_SUPPORTED)
498 	ZEND_ME(ZipArchive, isEncryptionMethodSupported, arginfo_class_ZipArchive_isEncryptionMethodSupported, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
499 #endif
500 	ZEND_FE_END
501 };
502 
register_class_ZipArchive(zend_class_entry * class_entry_Countable)503 static zend_class_entry *register_class_ZipArchive(zend_class_entry *class_entry_Countable)
504 {
505 	zend_class_entry ce, *class_entry;
506 
507 	INIT_CLASS_ENTRY(ce, "ZipArchive", class_ZipArchive_methods);
508 	class_entry = zend_register_internal_class_ex(&ce, NULL);
509 	zend_class_implements(class_entry, 1, class_entry_Countable);
510 
511 	zval const_CREATE_value;
512 	ZVAL_LONG(&const_CREATE_value, ZIP_CREATE);
513 	zend_string *const_CREATE_name = zend_string_init_interned("CREATE", sizeof("CREATE") - 1, 1);
514 	zend_declare_typed_class_constant(class_entry, const_CREATE_name, &const_CREATE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
515 	zend_string_release(const_CREATE_name);
516 
517 	zval const_EXCL_value;
518 	ZVAL_LONG(&const_EXCL_value, ZIP_EXCL);
519 	zend_string *const_EXCL_name = zend_string_init_interned("EXCL", sizeof("EXCL") - 1, 1);
520 	zend_declare_typed_class_constant(class_entry, const_EXCL_name, &const_EXCL_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
521 	zend_string_release(const_EXCL_name);
522 
523 	zval const_CHECKCONS_value;
524 	ZVAL_LONG(&const_CHECKCONS_value, ZIP_CHECKCONS);
525 	zend_string *const_CHECKCONS_name = zend_string_init_interned("CHECKCONS", sizeof("CHECKCONS") - 1, 1);
526 	zend_declare_typed_class_constant(class_entry, const_CHECKCONS_name, &const_CHECKCONS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
527 	zend_string_release(const_CHECKCONS_name);
528 
529 	zval const_OVERWRITE_value;
530 	ZVAL_LONG(&const_OVERWRITE_value, ZIP_OVERWRITE);
531 	zend_string *const_OVERWRITE_name = zend_string_init_interned("OVERWRITE", sizeof("OVERWRITE") - 1, 1);
532 	zend_declare_typed_class_constant(class_entry, const_OVERWRITE_name, &const_OVERWRITE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
533 	zend_string_release(const_OVERWRITE_name);
534 #if defined(ZIP_RDONLY)
535 
536 	zval const_RDONLY_value;
537 	ZVAL_LONG(&const_RDONLY_value, ZIP_RDONLY);
538 	zend_string *const_RDONLY_name = zend_string_init_interned("RDONLY", sizeof("RDONLY") - 1, 1);
539 	zend_declare_typed_class_constant(class_entry, const_RDONLY_name, &const_RDONLY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
540 	zend_string_release(const_RDONLY_name);
541 #endif
542 
543 	zval const_FL_NOCASE_value;
544 	ZVAL_LONG(&const_FL_NOCASE_value, ZIP_FL_NOCASE);
545 	zend_string *const_FL_NOCASE_name = zend_string_init_interned("FL_NOCASE", sizeof("FL_NOCASE") - 1, 1);
546 	zend_declare_typed_class_constant(class_entry, const_FL_NOCASE_name, &const_FL_NOCASE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
547 	zend_string_release(const_FL_NOCASE_name);
548 
549 	zval const_FL_NODIR_value;
550 	ZVAL_LONG(&const_FL_NODIR_value, ZIP_FL_NODIR);
551 	zend_string *const_FL_NODIR_name = zend_string_init_interned("FL_NODIR", sizeof("FL_NODIR") - 1, 1);
552 	zend_declare_typed_class_constant(class_entry, const_FL_NODIR_name, &const_FL_NODIR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
553 	zend_string_release(const_FL_NODIR_name);
554 
555 	zval const_FL_COMPRESSED_value;
556 	ZVAL_LONG(&const_FL_COMPRESSED_value, ZIP_FL_COMPRESSED);
557 	zend_string *const_FL_COMPRESSED_name = zend_string_init_interned("FL_COMPRESSED", sizeof("FL_COMPRESSED") - 1, 1);
558 	zend_declare_typed_class_constant(class_entry, const_FL_COMPRESSED_name, &const_FL_COMPRESSED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
559 	zend_string_release(const_FL_COMPRESSED_name);
560 
561 	zval const_FL_UNCHANGED_value;
562 	ZVAL_LONG(&const_FL_UNCHANGED_value, ZIP_FL_UNCHANGED);
563 	zend_string *const_FL_UNCHANGED_name = zend_string_init_interned("FL_UNCHANGED", sizeof("FL_UNCHANGED") - 1, 1);
564 	zend_declare_typed_class_constant(class_entry, const_FL_UNCHANGED_name, &const_FL_UNCHANGED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
565 	zend_string_release(const_FL_UNCHANGED_name);
566 #if defined(ZIP_FL_RECOMPRESS)
567 
568 	zval const_FL_RECOMPRESS_value;
569 	ZVAL_LONG(&const_FL_RECOMPRESS_value, ZIP_FL_RECOMPRESS);
570 	zend_string *const_FL_RECOMPRESS_name = zend_string_init_interned("FL_RECOMPRESS", sizeof("FL_RECOMPRESS") - 1, 1);
571 	zend_declare_typed_class_constant(class_entry, const_FL_RECOMPRESS_name, &const_FL_RECOMPRESS_value, ZEND_ACC_PUBLIC|ZEND_ACC_DEPRECATED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
572 	zend_string_release(const_FL_RECOMPRESS_name);
573 #endif
574 
575 	zval const_FL_ENCRYPTED_value;
576 	ZVAL_LONG(&const_FL_ENCRYPTED_value, ZIP_FL_ENCRYPTED);
577 	zend_string *const_FL_ENCRYPTED_name = zend_string_init_interned("FL_ENCRYPTED", sizeof("FL_ENCRYPTED") - 1, 1);
578 	zend_declare_typed_class_constant(class_entry, const_FL_ENCRYPTED_name, &const_FL_ENCRYPTED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
579 	zend_string_release(const_FL_ENCRYPTED_name);
580 
581 	zval const_FL_OVERWRITE_value;
582 	ZVAL_LONG(&const_FL_OVERWRITE_value, ZIP_FL_OVERWRITE);
583 	zend_string *const_FL_OVERWRITE_name = zend_string_init_interned("FL_OVERWRITE", sizeof("FL_OVERWRITE") - 1, 1);
584 	zend_declare_typed_class_constant(class_entry, const_FL_OVERWRITE_name, &const_FL_OVERWRITE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
585 	zend_string_release(const_FL_OVERWRITE_name);
586 
587 	zval const_FL_LOCAL_value;
588 	ZVAL_LONG(&const_FL_LOCAL_value, ZIP_FL_LOCAL);
589 	zend_string *const_FL_LOCAL_name = zend_string_init_interned("FL_LOCAL", sizeof("FL_LOCAL") - 1, 1);
590 	zend_declare_typed_class_constant(class_entry, const_FL_LOCAL_name, &const_FL_LOCAL_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
591 	zend_string_release(const_FL_LOCAL_name);
592 
593 	zval const_FL_CENTRAL_value;
594 	ZVAL_LONG(&const_FL_CENTRAL_value, ZIP_FL_CENTRAL);
595 	zend_string *const_FL_CENTRAL_name = zend_string_init_interned("FL_CENTRAL", sizeof("FL_CENTRAL") - 1, 1);
596 	zend_declare_typed_class_constant(class_entry, const_FL_CENTRAL_name, &const_FL_CENTRAL_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
597 	zend_string_release(const_FL_CENTRAL_name);
598 
599 	zval const_FL_ENC_GUESS_value;
600 	ZVAL_LONG(&const_FL_ENC_GUESS_value, ZIP_FL_ENC_GUESS);
601 	zend_string *const_FL_ENC_GUESS_name = zend_string_init_interned("FL_ENC_GUESS", sizeof("FL_ENC_GUESS") - 1, 1);
602 	zend_declare_typed_class_constant(class_entry, const_FL_ENC_GUESS_name, &const_FL_ENC_GUESS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
603 	zend_string_release(const_FL_ENC_GUESS_name);
604 
605 	zval const_FL_ENC_RAW_value;
606 	ZVAL_LONG(&const_FL_ENC_RAW_value, ZIP_FL_ENC_RAW);
607 	zend_string *const_FL_ENC_RAW_name = zend_string_init_interned("FL_ENC_RAW", sizeof("FL_ENC_RAW") - 1, 1);
608 	zend_declare_typed_class_constant(class_entry, const_FL_ENC_RAW_name, &const_FL_ENC_RAW_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
609 	zend_string_release(const_FL_ENC_RAW_name);
610 
611 	zval const_FL_ENC_STRICT_value;
612 	ZVAL_LONG(&const_FL_ENC_STRICT_value, ZIP_FL_ENC_STRICT);
613 	zend_string *const_FL_ENC_STRICT_name = zend_string_init_interned("FL_ENC_STRICT", sizeof("FL_ENC_STRICT") - 1, 1);
614 	zend_declare_typed_class_constant(class_entry, const_FL_ENC_STRICT_name, &const_FL_ENC_STRICT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
615 	zend_string_release(const_FL_ENC_STRICT_name);
616 
617 	zval const_FL_ENC_UTF_8_value;
618 	ZVAL_LONG(&const_FL_ENC_UTF_8_value, ZIP_FL_ENC_UTF_8);
619 	zend_string *const_FL_ENC_UTF_8_name = zend_string_init_interned("FL_ENC_UTF_8", sizeof("FL_ENC_UTF_8") - 1, 1);
620 	zend_declare_typed_class_constant(class_entry, const_FL_ENC_UTF_8_name, &const_FL_ENC_UTF_8_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
621 	zend_string_release(const_FL_ENC_UTF_8_name);
622 
623 	zval const_FL_ENC_CP437_value;
624 	ZVAL_LONG(&const_FL_ENC_CP437_value, ZIP_FL_ENC_CP437);
625 	zend_string *const_FL_ENC_CP437_name = zend_string_init_interned("FL_ENC_CP437", sizeof("FL_ENC_CP437") - 1, 1);
626 	zend_declare_typed_class_constant(class_entry, const_FL_ENC_CP437_name, &const_FL_ENC_CP437_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
627 	zend_string_release(const_FL_ENC_CP437_name);
628 
629 	zval const_FL_OPEN_FILE_NOW_value;
630 	ZVAL_LONG(&const_FL_OPEN_FILE_NOW_value, ZIP_FL_OPEN_FILE_NOW);
631 	zend_string *const_FL_OPEN_FILE_NOW_name = zend_string_init_interned("FL_OPEN_FILE_NOW", sizeof("FL_OPEN_FILE_NOW") - 1, 1);
632 	zend_declare_typed_class_constant(class_entry, const_FL_OPEN_FILE_NOW_name, &const_FL_OPEN_FILE_NOW_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
633 	zend_string_release(const_FL_OPEN_FILE_NOW_name);
634 
635 	zval const_CM_DEFAULT_value;
636 	ZVAL_LONG(&const_CM_DEFAULT_value, ZIP_CM_DEFAULT);
637 	zend_string *const_CM_DEFAULT_name = zend_string_init_interned("CM_DEFAULT", sizeof("CM_DEFAULT") - 1, 1);
638 	zend_declare_typed_class_constant(class_entry, const_CM_DEFAULT_name, &const_CM_DEFAULT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
639 	zend_string_release(const_CM_DEFAULT_name);
640 
641 	zval const_CM_STORE_value;
642 	ZVAL_LONG(&const_CM_STORE_value, ZIP_CM_STORE);
643 	zend_string *const_CM_STORE_name = zend_string_init_interned("CM_STORE", sizeof("CM_STORE") - 1, 1);
644 	zend_declare_typed_class_constant(class_entry, const_CM_STORE_name, &const_CM_STORE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
645 	zend_string_release(const_CM_STORE_name);
646 
647 	zval const_CM_SHRINK_value;
648 	ZVAL_LONG(&const_CM_SHRINK_value, ZIP_CM_SHRINK);
649 	zend_string *const_CM_SHRINK_name = zend_string_init_interned("CM_SHRINK", sizeof("CM_SHRINK") - 1, 1);
650 	zend_declare_typed_class_constant(class_entry, const_CM_SHRINK_name, &const_CM_SHRINK_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
651 	zend_string_release(const_CM_SHRINK_name);
652 
653 	zval const_CM_REDUCE_1_value;
654 	ZVAL_LONG(&const_CM_REDUCE_1_value, ZIP_CM_REDUCE_1);
655 	zend_string *const_CM_REDUCE_1_name = zend_string_init_interned("CM_REDUCE_1", sizeof("CM_REDUCE_1") - 1, 1);
656 	zend_declare_typed_class_constant(class_entry, const_CM_REDUCE_1_name, &const_CM_REDUCE_1_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
657 	zend_string_release(const_CM_REDUCE_1_name);
658 
659 	zval const_CM_REDUCE_2_value;
660 	ZVAL_LONG(&const_CM_REDUCE_2_value, ZIP_CM_REDUCE_2);
661 	zend_string *const_CM_REDUCE_2_name = zend_string_init_interned("CM_REDUCE_2", sizeof("CM_REDUCE_2") - 1, 1);
662 	zend_declare_typed_class_constant(class_entry, const_CM_REDUCE_2_name, &const_CM_REDUCE_2_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
663 	zend_string_release(const_CM_REDUCE_2_name);
664 
665 	zval const_CM_REDUCE_3_value;
666 	ZVAL_LONG(&const_CM_REDUCE_3_value, ZIP_CM_REDUCE_3);
667 	zend_string *const_CM_REDUCE_3_name = zend_string_init_interned("CM_REDUCE_3", sizeof("CM_REDUCE_3") - 1, 1);
668 	zend_declare_typed_class_constant(class_entry, const_CM_REDUCE_3_name, &const_CM_REDUCE_3_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
669 	zend_string_release(const_CM_REDUCE_3_name);
670 
671 	zval const_CM_REDUCE_4_value;
672 	ZVAL_LONG(&const_CM_REDUCE_4_value, ZIP_CM_REDUCE_4);
673 	zend_string *const_CM_REDUCE_4_name = zend_string_init_interned("CM_REDUCE_4", sizeof("CM_REDUCE_4") - 1, 1);
674 	zend_declare_typed_class_constant(class_entry, const_CM_REDUCE_4_name, &const_CM_REDUCE_4_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
675 	zend_string_release(const_CM_REDUCE_4_name);
676 
677 	zval const_CM_IMPLODE_value;
678 	ZVAL_LONG(&const_CM_IMPLODE_value, ZIP_CM_IMPLODE);
679 	zend_string *const_CM_IMPLODE_name = zend_string_init_interned("CM_IMPLODE", sizeof("CM_IMPLODE") - 1, 1);
680 	zend_declare_typed_class_constant(class_entry, const_CM_IMPLODE_name, &const_CM_IMPLODE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
681 	zend_string_release(const_CM_IMPLODE_name);
682 
683 	zval const_CM_DEFLATE_value;
684 	ZVAL_LONG(&const_CM_DEFLATE_value, ZIP_CM_DEFLATE);
685 	zend_string *const_CM_DEFLATE_name = zend_string_init_interned("CM_DEFLATE", sizeof("CM_DEFLATE") - 1, 1);
686 	zend_declare_typed_class_constant(class_entry, const_CM_DEFLATE_name, &const_CM_DEFLATE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
687 	zend_string_release(const_CM_DEFLATE_name);
688 
689 	zval const_CM_DEFLATE64_value;
690 	ZVAL_LONG(&const_CM_DEFLATE64_value, ZIP_CM_DEFLATE64);
691 	zend_string *const_CM_DEFLATE64_name = zend_string_init_interned("CM_DEFLATE64", sizeof("CM_DEFLATE64") - 1, 1);
692 	zend_declare_typed_class_constant(class_entry, const_CM_DEFLATE64_name, &const_CM_DEFLATE64_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
693 	zend_string_release(const_CM_DEFLATE64_name);
694 
695 	zval const_CM_PKWARE_IMPLODE_value;
696 	ZVAL_LONG(&const_CM_PKWARE_IMPLODE_value, ZIP_CM_PKWARE_IMPLODE);
697 	zend_string *const_CM_PKWARE_IMPLODE_name = zend_string_init_interned("CM_PKWARE_IMPLODE", sizeof("CM_PKWARE_IMPLODE") - 1, 1);
698 	zend_declare_typed_class_constant(class_entry, const_CM_PKWARE_IMPLODE_name, &const_CM_PKWARE_IMPLODE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
699 	zend_string_release(const_CM_PKWARE_IMPLODE_name);
700 
701 	zval const_CM_BZIP2_value;
702 	ZVAL_LONG(&const_CM_BZIP2_value, ZIP_CM_BZIP2);
703 	zend_string *const_CM_BZIP2_name = zend_string_init_interned("CM_BZIP2", sizeof("CM_BZIP2") - 1, 1);
704 	zend_declare_typed_class_constant(class_entry, const_CM_BZIP2_name, &const_CM_BZIP2_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
705 	zend_string_release(const_CM_BZIP2_name);
706 
707 	zval const_CM_LZMA_value;
708 	ZVAL_LONG(&const_CM_LZMA_value, ZIP_CM_LZMA);
709 	zend_string *const_CM_LZMA_name = zend_string_init_interned("CM_LZMA", sizeof("CM_LZMA") - 1, 1);
710 	zend_declare_typed_class_constant(class_entry, const_CM_LZMA_name, &const_CM_LZMA_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
711 	zend_string_release(const_CM_LZMA_name);
712 #if defined(ZIP_CM_LZMA2)
713 
714 	zval const_CM_LZMA2_value;
715 	ZVAL_LONG(&const_CM_LZMA2_value, ZIP_CM_LZMA2);
716 	zend_string *const_CM_LZMA2_name = zend_string_init_interned("CM_LZMA2", sizeof("CM_LZMA2") - 1, 1);
717 	zend_declare_typed_class_constant(class_entry, const_CM_LZMA2_name, &const_CM_LZMA2_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
718 	zend_string_release(const_CM_LZMA2_name);
719 #endif
720 #if defined(ZIP_CM_ZSTD)
721 
722 	zval const_CM_ZSTD_value;
723 	ZVAL_LONG(&const_CM_ZSTD_value, ZIP_CM_ZSTD);
724 	zend_string *const_CM_ZSTD_name = zend_string_init_interned("CM_ZSTD", sizeof("CM_ZSTD") - 1, 1);
725 	zend_declare_typed_class_constant(class_entry, const_CM_ZSTD_name, &const_CM_ZSTD_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
726 	zend_string_release(const_CM_ZSTD_name);
727 #endif
728 #if defined(ZIP_CM_XZ)
729 
730 	zval const_CM_XZ_value;
731 	ZVAL_LONG(&const_CM_XZ_value, ZIP_CM_XZ);
732 	zend_string *const_CM_XZ_name = zend_string_init_interned("CM_XZ", sizeof("CM_XZ") - 1, 1);
733 	zend_declare_typed_class_constant(class_entry, const_CM_XZ_name, &const_CM_XZ_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
734 	zend_string_release(const_CM_XZ_name);
735 #endif
736 
737 	zval const_CM_TERSE_value;
738 	ZVAL_LONG(&const_CM_TERSE_value, ZIP_CM_TERSE);
739 	zend_string *const_CM_TERSE_name = zend_string_init_interned("CM_TERSE", sizeof("CM_TERSE") - 1, 1);
740 	zend_declare_typed_class_constant(class_entry, const_CM_TERSE_name, &const_CM_TERSE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
741 	zend_string_release(const_CM_TERSE_name);
742 
743 	zval const_CM_LZ77_value;
744 	ZVAL_LONG(&const_CM_LZ77_value, ZIP_CM_LZ77);
745 	zend_string *const_CM_LZ77_name = zend_string_init_interned("CM_LZ77", sizeof("CM_LZ77") - 1, 1);
746 	zend_declare_typed_class_constant(class_entry, const_CM_LZ77_name, &const_CM_LZ77_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
747 	zend_string_release(const_CM_LZ77_name);
748 
749 	zval const_CM_WAVPACK_value;
750 	ZVAL_LONG(&const_CM_WAVPACK_value, ZIP_CM_WAVPACK);
751 	zend_string *const_CM_WAVPACK_name = zend_string_init_interned("CM_WAVPACK", sizeof("CM_WAVPACK") - 1, 1);
752 	zend_declare_typed_class_constant(class_entry, const_CM_WAVPACK_name, &const_CM_WAVPACK_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
753 	zend_string_release(const_CM_WAVPACK_name);
754 
755 	zval const_CM_PPMD_value;
756 	ZVAL_LONG(&const_CM_PPMD_value, ZIP_CM_PPMD);
757 	zend_string *const_CM_PPMD_name = zend_string_init_interned("CM_PPMD", sizeof("CM_PPMD") - 1, 1);
758 	zend_declare_typed_class_constant(class_entry, const_CM_PPMD_name, &const_CM_PPMD_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
759 	zend_string_release(const_CM_PPMD_name);
760 
761 	zval const_ER_OK_value;
762 	ZVAL_LONG(&const_ER_OK_value, ZIP_ER_OK);
763 	zend_string *const_ER_OK_name = zend_string_init_interned("ER_OK", sizeof("ER_OK") - 1, 1);
764 	zend_declare_typed_class_constant(class_entry, const_ER_OK_name, &const_ER_OK_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
765 	zend_string_release(const_ER_OK_name);
766 
767 	zval const_ER_MULTIDISK_value;
768 	ZVAL_LONG(&const_ER_MULTIDISK_value, ZIP_ER_MULTIDISK);
769 	zend_string *const_ER_MULTIDISK_name = zend_string_init_interned("ER_MULTIDISK", sizeof("ER_MULTIDISK") - 1, 1);
770 	zend_declare_typed_class_constant(class_entry, const_ER_MULTIDISK_name, &const_ER_MULTIDISK_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
771 	zend_string_release(const_ER_MULTIDISK_name);
772 
773 	zval const_ER_RENAME_value;
774 	ZVAL_LONG(&const_ER_RENAME_value, ZIP_ER_RENAME);
775 	zend_string *const_ER_RENAME_name = zend_string_init_interned("ER_RENAME", sizeof("ER_RENAME") - 1, 1);
776 	zend_declare_typed_class_constant(class_entry, const_ER_RENAME_name, &const_ER_RENAME_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
777 	zend_string_release(const_ER_RENAME_name);
778 
779 	zval const_ER_CLOSE_value;
780 	ZVAL_LONG(&const_ER_CLOSE_value, ZIP_ER_CLOSE);
781 	zend_string *const_ER_CLOSE_name = zend_string_init_interned("ER_CLOSE", sizeof("ER_CLOSE") - 1, 1);
782 	zend_declare_typed_class_constant(class_entry, const_ER_CLOSE_name, &const_ER_CLOSE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
783 	zend_string_release(const_ER_CLOSE_name);
784 
785 	zval const_ER_SEEK_value;
786 	ZVAL_LONG(&const_ER_SEEK_value, ZIP_ER_SEEK);
787 	zend_string *const_ER_SEEK_name = zend_string_init_interned("ER_SEEK", sizeof("ER_SEEK") - 1, 1);
788 	zend_declare_typed_class_constant(class_entry, const_ER_SEEK_name, &const_ER_SEEK_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
789 	zend_string_release(const_ER_SEEK_name);
790 
791 	zval const_ER_READ_value;
792 	ZVAL_LONG(&const_ER_READ_value, ZIP_ER_READ);
793 	zend_string *const_ER_READ_name = zend_string_init_interned("ER_READ", sizeof("ER_READ") - 1, 1);
794 	zend_declare_typed_class_constant(class_entry, const_ER_READ_name, &const_ER_READ_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
795 	zend_string_release(const_ER_READ_name);
796 
797 	zval const_ER_WRITE_value;
798 	ZVAL_LONG(&const_ER_WRITE_value, ZIP_ER_WRITE);
799 	zend_string *const_ER_WRITE_name = zend_string_init_interned("ER_WRITE", sizeof("ER_WRITE") - 1, 1);
800 	zend_declare_typed_class_constant(class_entry, const_ER_WRITE_name, &const_ER_WRITE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
801 	zend_string_release(const_ER_WRITE_name);
802 
803 	zval const_ER_CRC_value;
804 	ZVAL_LONG(&const_ER_CRC_value, ZIP_ER_CRC);
805 	zend_string *const_ER_CRC_name = zend_string_init_interned("ER_CRC", sizeof("ER_CRC") - 1, 1);
806 	zend_declare_typed_class_constant(class_entry, const_ER_CRC_name, &const_ER_CRC_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
807 	zend_string_release(const_ER_CRC_name);
808 
809 	zval const_ER_ZIPCLOSED_value;
810 	ZVAL_LONG(&const_ER_ZIPCLOSED_value, ZIP_ER_ZIPCLOSED);
811 	zend_string *const_ER_ZIPCLOSED_name = zend_string_init_interned("ER_ZIPCLOSED", sizeof("ER_ZIPCLOSED") - 1, 1);
812 	zend_declare_typed_class_constant(class_entry, const_ER_ZIPCLOSED_name, &const_ER_ZIPCLOSED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
813 	zend_string_release(const_ER_ZIPCLOSED_name);
814 
815 	zval const_ER_NOENT_value;
816 	ZVAL_LONG(&const_ER_NOENT_value, ZIP_ER_NOENT);
817 	zend_string *const_ER_NOENT_name = zend_string_init_interned("ER_NOENT", sizeof("ER_NOENT") - 1, 1);
818 	zend_declare_typed_class_constant(class_entry, const_ER_NOENT_name, &const_ER_NOENT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
819 	zend_string_release(const_ER_NOENT_name);
820 
821 	zval const_ER_EXISTS_value;
822 	ZVAL_LONG(&const_ER_EXISTS_value, ZIP_ER_EXISTS);
823 	zend_string *const_ER_EXISTS_name = zend_string_init_interned("ER_EXISTS", sizeof("ER_EXISTS") - 1, 1);
824 	zend_declare_typed_class_constant(class_entry, const_ER_EXISTS_name, &const_ER_EXISTS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
825 	zend_string_release(const_ER_EXISTS_name);
826 
827 	zval const_ER_OPEN_value;
828 	ZVAL_LONG(&const_ER_OPEN_value, ZIP_ER_OPEN);
829 	zend_string *const_ER_OPEN_name = zend_string_init_interned("ER_OPEN", sizeof("ER_OPEN") - 1, 1);
830 	zend_declare_typed_class_constant(class_entry, const_ER_OPEN_name, &const_ER_OPEN_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
831 	zend_string_release(const_ER_OPEN_name);
832 
833 	zval const_ER_TMPOPEN_value;
834 	ZVAL_LONG(&const_ER_TMPOPEN_value, ZIP_ER_TMPOPEN);
835 	zend_string *const_ER_TMPOPEN_name = zend_string_init_interned("ER_TMPOPEN", sizeof("ER_TMPOPEN") - 1, 1);
836 	zend_declare_typed_class_constant(class_entry, const_ER_TMPOPEN_name, &const_ER_TMPOPEN_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
837 	zend_string_release(const_ER_TMPOPEN_name);
838 
839 	zval const_ER_ZLIB_value;
840 	ZVAL_LONG(&const_ER_ZLIB_value, ZIP_ER_ZLIB);
841 	zend_string *const_ER_ZLIB_name = zend_string_init_interned("ER_ZLIB", sizeof("ER_ZLIB") - 1, 1);
842 	zend_declare_typed_class_constant(class_entry, const_ER_ZLIB_name, &const_ER_ZLIB_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
843 	zend_string_release(const_ER_ZLIB_name);
844 
845 	zval const_ER_MEMORY_value;
846 	ZVAL_LONG(&const_ER_MEMORY_value, ZIP_ER_MEMORY);
847 	zend_string *const_ER_MEMORY_name = zend_string_init_interned("ER_MEMORY", sizeof("ER_MEMORY") - 1, 1);
848 	zend_declare_typed_class_constant(class_entry, const_ER_MEMORY_name, &const_ER_MEMORY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
849 	zend_string_release(const_ER_MEMORY_name);
850 
851 	zval const_ER_CHANGED_value;
852 	ZVAL_LONG(&const_ER_CHANGED_value, ZIP_ER_CHANGED);
853 	zend_string *const_ER_CHANGED_name = zend_string_init_interned("ER_CHANGED", sizeof("ER_CHANGED") - 1, 1);
854 	zend_declare_typed_class_constant(class_entry, const_ER_CHANGED_name, &const_ER_CHANGED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
855 	zend_string_release(const_ER_CHANGED_name);
856 
857 	zval const_ER_COMPNOTSUPP_value;
858 	ZVAL_LONG(&const_ER_COMPNOTSUPP_value, ZIP_ER_COMPNOTSUPP);
859 	zend_string *const_ER_COMPNOTSUPP_name = zend_string_init_interned("ER_COMPNOTSUPP", sizeof("ER_COMPNOTSUPP") - 1, 1);
860 	zend_declare_typed_class_constant(class_entry, const_ER_COMPNOTSUPP_name, &const_ER_COMPNOTSUPP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
861 	zend_string_release(const_ER_COMPNOTSUPP_name);
862 
863 	zval const_ER_EOF_value;
864 	ZVAL_LONG(&const_ER_EOF_value, ZIP_ER_EOF);
865 	zend_string *const_ER_EOF_name = zend_string_init_interned("ER_EOF", sizeof("ER_EOF") - 1, 1);
866 	zend_declare_typed_class_constant(class_entry, const_ER_EOF_name, &const_ER_EOF_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
867 	zend_string_release(const_ER_EOF_name);
868 
869 	zval const_ER_INVAL_value;
870 	ZVAL_LONG(&const_ER_INVAL_value, ZIP_ER_INVAL);
871 	zend_string *const_ER_INVAL_name = zend_string_init_interned("ER_INVAL", sizeof("ER_INVAL") - 1, 1);
872 	zend_declare_typed_class_constant(class_entry, const_ER_INVAL_name, &const_ER_INVAL_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
873 	zend_string_release(const_ER_INVAL_name);
874 
875 	zval const_ER_NOZIP_value;
876 	ZVAL_LONG(&const_ER_NOZIP_value, ZIP_ER_NOZIP);
877 	zend_string *const_ER_NOZIP_name = zend_string_init_interned("ER_NOZIP", sizeof("ER_NOZIP") - 1, 1);
878 	zend_declare_typed_class_constant(class_entry, const_ER_NOZIP_name, &const_ER_NOZIP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
879 	zend_string_release(const_ER_NOZIP_name);
880 
881 	zval const_ER_INTERNAL_value;
882 	ZVAL_LONG(&const_ER_INTERNAL_value, ZIP_ER_INTERNAL);
883 	zend_string *const_ER_INTERNAL_name = zend_string_init_interned("ER_INTERNAL", sizeof("ER_INTERNAL") - 1, 1);
884 	zend_declare_typed_class_constant(class_entry, const_ER_INTERNAL_name, &const_ER_INTERNAL_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
885 	zend_string_release(const_ER_INTERNAL_name);
886 
887 	zval const_ER_INCONS_value;
888 	ZVAL_LONG(&const_ER_INCONS_value, ZIP_ER_INCONS);
889 	zend_string *const_ER_INCONS_name = zend_string_init_interned("ER_INCONS", sizeof("ER_INCONS") - 1, 1);
890 	zend_declare_typed_class_constant(class_entry, const_ER_INCONS_name, &const_ER_INCONS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
891 	zend_string_release(const_ER_INCONS_name);
892 
893 	zval const_ER_REMOVE_value;
894 	ZVAL_LONG(&const_ER_REMOVE_value, ZIP_ER_REMOVE);
895 	zend_string *const_ER_REMOVE_name = zend_string_init_interned("ER_REMOVE", sizeof("ER_REMOVE") - 1, 1);
896 	zend_declare_typed_class_constant(class_entry, const_ER_REMOVE_name, &const_ER_REMOVE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
897 	zend_string_release(const_ER_REMOVE_name);
898 
899 	zval const_ER_DELETED_value;
900 	ZVAL_LONG(&const_ER_DELETED_value, ZIP_ER_DELETED);
901 	zend_string *const_ER_DELETED_name = zend_string_init_interned("ER_DELETED", sizeof("ER_DELETED") - 1, 1);
902 	zend_declare_typed_class_constant(class_entry, const_ER_DELETED_name, &const_ER_DELETED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
903 	zend_string_release(const_ER_DELETED_name);
904 
905 	zval const_ER_ENCRNOTSUPP_value;
906 	ZVAL_LONG(&const_ER_ENCRNOTSUPP_value, ZIP_ER_ENCRNOTSUPP);
907 	zend_string *const_ER_ENCRNOTSUPP_name = zend_string_init_interned("ER_ENCRNOTSUPP", sizeof("ER_ENCRNOTSUPP") - 1, 1);
908 	zend_declare_typed_class_constant(class_entry, const_ER_ENCRNOTSUPP_name, &const_ER_ENCRNOTSUPP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
909 	zend_string_release(const_ER_ENCRNOTSUPP_name);
910 
911 	zval const_ER_RDONLY_value;
912 	ZVAL_LONG(&const_ER_RDONLY_value, ZIP_ER_RDONLY);
913 	zend_string *const_ER_RDONLY_name = zend_string_init_interned("ER_RDONLY", sizeof("ER_RDONLY") - 1, 1);
914 	zend_declare_typed_class_constant(class_entry, const_ER_RDONLY_name, &const_ER_RDONLY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
915 	zend_string_release(const_ER_RDONLY_name);
916 
917 	zval const_ER_NOPASSWD_value;
918 	ZVAL_LONG(&const_ER_NOPASSWD_value, ZIP_ER_NOPASSWD);
919 	zend_string *const_ER_NOPASSWD_name = zend_string_init_interned("ER_NOPASSWD", sizeof("ER_NOPASSWD") - 1, 1);
920 	zend_declare_typed_class_constant(class_entry, const_ER_NOPASSWD_name, &const_ER_NOPASSWD_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
921 	zend_string_release(const_ER_NOPASSWD_name);
922 
923 	zval const_ER_WRONGPASSWD_value;
924 	ZVAL_LONG(&const_ER_WRONGPASSWD_value, ZIP_ER_WRONGPASSWD);
925 	zend_string *const_ER_WRONGPASSWD_name = zend_string_init_interned("ER_WRONGPASSWD", sizeof("ER_WRONGPASSWD") - 1, 1);
926 	zend_declare_typed_class_constant(class_entry, const_ER_WRONGPASSWD_name, &const_ER_WRONGPASSWD_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
927 	zend_string_release(const_ER_WRONGPASSWD_name);
928 #if defined(ZIP_ER_OPNOTSUPP)
929 
930 	zval const_ER_OPNOTSUPP_value;
931 	ZVAL_LONG(&const_ER_OPNOTSUPP_value, ZIP_ER_OPNOTSUPP);
932 	zend_string *const_ER_OPNOTSUPP_name = zend_string_init_interned("ER_OPNOTSUPP", sizeof("ER_OPNOTSUPP") - 1, 1);
933 	zend_declare_typed_class_constant(class_entry, const_ER_OPNOTSUPP_name, &const_ER_OPNOTSUPP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
934 	zend_string_release(const_ER_OPNOTSUPP_name);
935 #endif
936 #if defined(ZIP_ER_INUSE)
937 
938 	zval const_ER_INUSE_value;
939 	ZVAL_LONG(&const_ER_INUSE_value, ZIP_ER_INUSE);
940 	zend_string *const_ER_INUSE_name = zend_string_init_interned("ER_INUSE", sizeof("ER_INUSE") - 1, 1);
941 	zend_declare_typed_class_constant(class_entry, const_ER_INUSE_name, &const_ER_INUSE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
942 	zend_string_release(const_ER_INUSE_name);
943 #endif
944 #if defined(ZIP_ER_TELL)
945 
946 	zval const_ER_TELL_value;
947 	ZVAL_LONG(&const_ER_TELL_value, ZIP_ER_TELL);
948 	zend_string *const_ER_TELL_name = zend_string_init_interned("ER_TELL", sizeof("ER_TELL") - 1, 1);
949 	zend_declare_typed_class_constant(class_entry, const_ER_TELL_name, &const_ER_TELL_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
950 	zend_string_release(const_ER_TELL_name);
951 #endif
952 #if defined(ZIP_ER_COMPRESSED_DATA)
953 
954 	zval const_ER_COMPRESSED_DATA_value;
955 	ZVAL_LONG(&const_ER_COMPRESSED_DATA_value, ZIP_ER_COMPRESSED_DATA);
956 	zend_string *const_ER_COMPRESSED_DATA_name = zend_string_init_interned("ER_COMPRESSED_DATA", sizeof("ER_COMPRESSED_DATA") - 1, 1);
957 	zend_declare_typed_class_constant(class_entry, const_ER_COMPRESSED_DATA_name, &const_ER_COMPRESSED_DATA_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
958 	zend_string_release(const_ER_COMPRESSED_DATA_name);
959 #endif
960 #if defined(ZIP_ER_CANCELLED)
961 
962 	zval const_ER_CANCELLED_value;
963 	ZVAL_LONG(&const_ER_CANCELLED_value, ZIP_ER_CANCELLED);
964 	zend_string *const_ER_CANCELLED_name = zend_string_init_interned("ER_CANCELLED", sizeof("ER_CANCELLED") - 1, 1);
965 	zend_declare_typed_class_constant(class_entry, const_ER_CANCELLED_name, &const_ER_CANCELLED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
966 	zend_string_release(const_ER_CANCELLED_name);
967 #endif
968 #if defined(ZIP_ER_DATA_LENGTH)
969 
970 	zval const_ER_DATA_LENGTH_value;
971 	ZVAL_LONG(&const_ER_DATA_LENGTH_value, ZIP_ER_DATA_LENGTH);
972 	zend_string *const_ER_DATA_LENGTH_name = zend_string_init_interned("ER_DATA_LENGTH", sizeof("ER_DATA_LENGTH") - 1, 1);
973 	zend_declare_typed_class_constant(class_entry, const_ER_DATA_LENGTH_name, &const_ER_DATA_LENGTH_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
974 	zend_string_release(const_ER_DATA_LENGTH_name);
975 #endif
976 #if defined(ZIP_ER_NOT_ALLOWED)
977 
978 	zval const_ER_NOT_ALLOWED_value;
979 	ZVAL_LONG(&const_ER_NOT_ALLOWED_value, ZIP_ER_NOT_ALLOWED);
980 	zend_string *const_ER_NOT_ALLOWED_name = zend_string_init_interned("ER_NOT_ALLOWED", sizeof("ER_NOT_ALLOWED") - 1, 1);
981 	zend_declare_typed_class_constant(class_entry, const_ER_NOT_ALLOWED_name, &const_ER_NOT_ALLOWED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
982 	zend_string_release(const_ER_NOT_ALLOWED_name);
983 #endif
984 #if defined(ZIP_AFL_RDONLY)
985 
986 	zval const_AFL_RDONLY_value;
987 	ZVAL_LONG(&const_AFL_RDONLY_value, ZIP_AFL_RDONLY);
988 	zend_string *const_AFL_RDONLY_name = zend_string_init_interned("AFL_RDONLY", sizeof("AFL_RDONLY") - 1, 1);
989 	zend_declare_typed_class_constant(class_entry, const_AFL_RDONLY_name, &const_AFL_RDONLY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
990 	zend_string_release(const_AFL_RDONLY_name);
991 #endif
992 #if defined(ZIP_AFL_IS_TORRENTZIP)
993 
994 	zval const_AFL_IS_TORRENTZIP_value;
995 	ZVAL_LONG(&const_AFL_IS_TORRENTZIP_value, ZIP_AFL_IS_TORRENTZIP);
996 	zend_string *const_AFL_IS_TORRENTZIP_name = zend_string_init_interned("AFL_IS_TORRENTZIP", sizeof("AFL_IS_TORRENTZIP") - 1, 1);
997 	zend_declare_typed_class_constant(class_entry, const_AFL_IS_TORRENTZIP_name, &const_AFL_IS_TORRENTZIP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
998 	zend_string_release(const_AFL_IS_TORRENTZIP_name);
999 #endif
1000 #if defined(ZIP_AFL_WANT_TORRENTZIP)
1001 
1002 	zval const_AFL_WANT_TORRENTZIP_value;
1003 	ZVAL_LONG(&const_AFL_WANT_TORRENTZIP_value, ZIP_AFL_WANT_TORRENTZIP);
1004 	zend_string *const_AFL_WANT_TORRENTZIP_name = zend_string_init_interned("AFL_WANT_TORRENTZIP", sizeof("AFL_WANT_TORRENTZIP") - 1, 1);
1005 	zend_declare_typed_class_constant(class_entry, const_AFL_WANT_TORRENTZIP_name, &const_AFL_WANT_TORRENTZIP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1006 	zend_string_release(const_AFL_WANT_TORRENTZIP_name);
1007 #endif
1008 #if defined(ZIP_AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE)
1009 
1010 	zval const_AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE_value;
1011 	ZVAL_LONG(&const_AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE_value, ZIP_AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE);
1012 	zend_string *const_AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE_name = zend_string_init_interned("AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE", sizeof("AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE") - 1, 1);
1013 	zend_declare_typed_class_constant(class_entry, const_AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE_name, &const_AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1014 	zend_string_release(const_AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE_name);
1015 #endif
1016 #if defined(ZIP_OPSYS_DEFAULT)
1017 
1018 	zval const_OPSYS_DOS_value;
1019 	ZVAL_LONG(&const_OPSYS_DOS_value, ZIP_OPSYS_DOS);
1020 	zend_string *const_OPSYS_DOS_name = zend_string_init_interned("OPSYS_DOS", sizeof("OPSYS_DOS") - 1, 1);
1021 	zend_declare_typed_class_constant(class_entry, const_OPSYS_DOS_name, &const_OPSYS_DOS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1022 	zend_string_release(const_OPSYS_DOS_name);
1023 #endif
1024 #if defined(ZIP_OPSYS_DEFAULT)
1025 
1026 	zval const_OPSYS_AMIGA_value;
1027 	ZVAL_LONG(&const_OPSYS_AMIGA_value, ZIP_OPSYS_AMIGA);
1028 	zend_string *const_OPSYS_AMIGA_name = zend_string_init_interned("OPSYS_AMIGA", sizeof("OPSYS_AMIGA") - 1, 1);
1029 	zend_declare_typed_class_constant(class_entry, const_OPSYS_AMIGA_name, &const_OPSYS_AMIGA_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1030 	zend_string_release(const_OPSYS_AMIGA_name);
1031 #endif
1032 #if defined(ZIP_OPSYS_DEFAULT)
1033 
1034 	zval const_OPSYS_OPENVMS_value;
1035 	ZVAL_LONG(&const_OPSYS_OPENVMS_value, ZIP_OPSYS_OPENVMS);
1036 	zend_string *const_OPSYS_OPENVMS_name = zend_string_init_interned("OPSYS_OPENVMS", sizeof("OPSYS_OPENVMS") - 1, 1);
1037 	zend_declare_typed_class_constant(class_entry, const_OPSYS_OPENVMS_name, &const_OPSYS_OPENVMS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1038 	zend_string_release(const_OPSYS_OPENVMS_name);
1039 #endif
1040 #if defined(ZIP_OPSYS_DEFAULT)
1041 
1042 	zval const_OPSYS_UNIX_value;
1043 	ZVAL_LONG(&const_OPSYS_UNIX_value, ZIP_OPSYS_UNIX);
1044 	zend_string *const_OPSYS_UNIX_name = zend_string_init_interned("OPSYS_UNIX", sizeof("OPSYS_UNIX") - 1, 1);
1045 	zend_declare_typed_class_constant(class_entry, const_OPSYS_UNIX_name, &const_OPSYS_UNIX_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1046 	zend_string_release(const_OPSYS_UNIX_name);
1047 #endif
1048 #if defined(ZIP_OPSYS_DEFAULT)
1049 
1050 	zval const_OPSYS_VM_CMS_value;
1051 	ZVAL_LONG(&const_OPSYS_VM_CMS_value, ZIP_OPSYS_VM_CMS);
1052 	zend_string *const_OPSYS_VM_CMS_name = zend_string_init_interned("OPSYS_VM_CMS", sizeof("OPSYS_VM_CMS") - 1, 1);
1053 	zend_declare_typed_class_constant(class_entry, const_OPSYS_VM_CMS_name, &const_OPSYS_VM_CMS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1054 	zend_string_release(const_OPSYS_VM_CMS_name);
1055 #endif
1056 #if defined(ZIP_OPSYS_DEFAULT)
1057 
1058 	zval const_OPSYS_ATARI_ST_value;
1059 	ZVAL_LONG(&const_OPSYS_ATARI_ST_value, ZIP_OPSYS_ATARI_ST);
1060 	zend_string *const_OPSYS_ATARI_ST_name = zend_string_init_interned("OPSYS_ATARI_ST", sizeof("OPSYS_ATARI_ST") - 1, 1);
1061 	zend_declare_typed_class_constant(class_entry, const_OPSYS_ATARI_ST_name, &const_OPSYS_ATARI_ST_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1062 	zend_string_release(const_OPSYS_ATARI_ST_name);
1063 #endif
1064 #if defined(ZIP_OPSYS_DEFAULT)
1065 
1066 	zval const_OPSYS_OS_2_value;
1067 	ZVAL_LONG(&const_OPSYS_OS_2_value, ZIP_OPSYS_OS_2);
1068 	zend_string *const_OPSYS_OS_2_name = zend_string_init_interned("OPSYS_OS_2", sizeof("OPSYS_OS_2") - 1, 1);
1069 	zend_declare_typed_class_constant(class_entry, const_OPSYS_OS_2_name, &const_OPSYS_OS_2_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1070 	zend_string_release(const_OPSYS_OS_2_name);
1071 #endif
1072 #if defined(ZIP_OPSYS_DEFAULT)
1073 
1074 	zval const_OPSYS_MACINTOSH_value;
1075 	ZVAL_LONG(&const_OPSYS_MACINTOSH_value, ZIP_OPSYS_MACINTOSH);
1076 	zend_string *const_OPSYS_MACINTOSH_name = zend_string_init_interned("OPSYS_MACINTOSH", sizeof("OPSYS_MACINTOSH") - 1, 1);
1077 	zend_declare_typed_class_constant(class_entry, const_OPSYS_MACINTOSH_name, &const_OPSYS_MACINTOSH_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1078 	zend_string_release(const_OPSYS_MACINTOSH_name);
1079 #endif
1080 #if defined(ZIP_OPSYS_DEFAULT)
1081 
1082 	zval const_OPSYS_Z_SYSTEM_value;
1083 	ZVAL_LONG(&const_OPSYS_Z_SYSTEM_value, ZIP_OPSYS_Z_SYSTEM);
1084 	zend_string *const_OPSYS_Z_SYSTEM_name = zend_string_init_interned("OPSYS_Z_SYSTEM", sizeof("OPSYS_Z_SYSTEM") - 1, 1);
1085 	zend_declare_typed_class_constant(class_entry, const_OPSYS_Z_SYSTEM_name, &const_OPSYS_Z_SYSTEM_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1086 	zend_string_release(const_OPSYS_Z_SYSTEM_name);
1087 #endif
1088 #if defined(ZIP_OPSYS_DEFAULT)
1089 
1090 	zval const_OPSYS_CPM_value;
1091 	ZVAL_LONG(&const_OPSYS_CPM_value, ZIP_OPSYS_CPM);
1092 	zend_string *const_OPSYS_CPM_name = zend_string_init_interned("OPSYS_CPM", sizeof("OPSYS_CPM") - 1, 1);
1093 	zend_declare_typed_class_constant(class_entry, const_OPSYS_CPM_name, &const_OPSYS_CPM_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1094 	zend_string_release(const_OPSYS_CPM_name);
1095 #endif
1096 #if defined(ZIP_OPSYS_DEFAULT)
1097 
1098 	zval const_OPSYS_WINDOWS_NTFS_value;
1099 	ZVAL_LONG(&const_OPSYS_WINDOWS_NTFS_value, ZIP_OPSYS_WINDOWS_NTFS);
1100 	zend_string *const_OPSYS_WINDOWS_NTFS_name = zend_string_init_interned("OPSYS_WINDOWS_NTFS", sizeof("OPSYS_WINDOWS_NTFS") - 1, 1);
1101 	zend_declare_typed_class_constant(class_entry, const_OPSYS_WINDOWS_NTFS_name, &const_OPSYS_WINDOWS_NTFS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1102 	zend_string_release(const_OPSYS_WINDOWS_NTFS_name);
1103 #endif
1104 #if defined(ZIP_OPSYS_DEFAULT)
1105 
1106 	zval const_OPSYS_MVS_value;
1107 	ZVAL_LONG(&const_OPSYS_MVS_value, ZIP_OPSYS_MVS);
1108 	zend_string *const_OPSYS_MVS_name = zend_string_init_interned("OPSYS_MVS", sizeof("OPSYS_MVS") - 1, 1);
1109 	zend_declare_typed_class_constant(class_entry, const_OPSYS_MVS_name, &const_OPSYS_MVS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1110 	zend_string_release(const_OPSYS_MVS_name);
1111 #endif
1112 #if defined(ZIP_OPSYS_DEFAULT)
1113 
1114 	zval const_OPSYS_VSE_value;
1115 	ZVAL_LONG(&const_OPSYS_VSE_value, ZIP_OPSYS_VSE);
1116 	zend_string *const_OPSYS_VSE_name = zend_string_init_interned("OPSYS_VSE", sizeof("OPSYS_VSE") - 1, 1);
1117 	zend_declare_typed_class_constant(class_entry, const_OPSYS_VSE_name, &const_OPSYS_VSE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1118 	zend_string_release(const_OPSYS_VSE_name);
1119 #endif
1120 #if defined(ZIP_OPSYS_DEFAULT)
1121 
1122 	zval const_OPSYS_ACORN_RISC_value;
1123 	ZVAL_LONG(&const_OPSYS_ACORN_RISC_value, ZIP_OPSYS_ACORN_RISC);
1124 	zend_string *const_OPSYS_ACORN_RISC_name = zend_string_init_interned("OPSYS_ACORN_RISC", sizeof("OPSYS_ACORN_RISC") - 1, 1);
1125 	zend_declare_typed_class_constant(class_entry, const_OPSYS_ACORN_RISC_name, &const_OPSYS_ACORN_RISC_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1126 	zend_string_release(const_OPSYS_ACORN_RISC_name);
1127 #endif
1128 #if defined(ZIP_OPSYS_DEFAULT)
1129 
1130 	zval const_OPSYS_VFAT_value;
1131 	ZVAL_LONG(&const_OPSYS_VFAT_value, ZIP_OPSYS_VFAT);
1132 	zend_string *const_OPSYS_VFAT_name = zend_string_init_interned("OPSYS_VFAT", sizeof("OPSYS_VFAT") - 1, 1);
1133 	zend_declare_typed_class_constant(class_entry, const_OPSYS_VFAT_name, &const_OPSYS_VFAT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1134 	zend_string_release(const_OPSYS_VFAT_name);
1135 #endif
1136 #if defined(ZIP_OPSYS_DEFAULT)
1137 
1138 	zval const_OPSYS_ALTERNATE_MVS_value;
1139 	ZVAL_LONG(&const_OPSYS_ALTERNATE_MVS_value, ZIP_OPSYS_ALTERNATE_MVS);
1140 	zend_string *const_OPSYS_ALTERNATE_MVS_name = zend_string_init_interned("OPSYS_ALTERNATE_MVS", sizeof("OPSYS_ALTERNATE_MVS") - 1, 1);
1141 	zend_declare_typed_class_constant(class_entry, const_OPSYS_ALTERNATE_MVS_name, &const_OPSYS_ALTERNATE_MVS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1142 	zend_string_release(const_OPSYS_ALTERNATE_MVS_name);
1143 #endif
1144 #if defined(ZIP_OPSYS_DEFAULT)
1145 
1146 	zval const_OPSYS_BEOS_value;
1147 	ZVAL_LONG(&const_OPSYS_BEOS_value, ZIP_OPSYS_BEOS);
1148 	zend_string *const_OPSYS_BEOS_name = zend_string_init_interned("OPSYS_BEOS", sizeof("OPSYS_BEOS") - 1, 1);
1149 	zend_declare_typed_class_constant(class_entry, const_OPSYS_BEOS_name, &const_OPSYS_BEOS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1150 	zend_string_release(const_OPSYS_BEOS_name);
1151 #endif
1152 #if defined(ZIP_OPSYS_DEFAULT)
1153 
1154 	zval const_OPSYS_TANDEM_value;
1155 	ZVAL_LONG(&const_OPSYS_TANDEM_value, ZIP_OPSYS_TANDEM);
1156 	zend_string *const_OPSYS_TANDEM_name = zend_string_init_interned("OPSYS_TANDEM", sizeof("OPSYS_TANDEM") - 1, 1);
1157 	zend_declare_typed_class_constant(class_entry, const_OPSYS_TANDEM_name, &const_OPSYS_TANDEM_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1158 	zend_string_release(const_OPSYS_TANDEM_name);
1159 #endif
1160 #if defined(ZIP_OPSYS_DEFAULT)
1161 
1162 	zval const_OPSYS_OS_400_value;
1163 	ZVAL_LONG(&const_OPSYS_OS_400_value, ZIP_OPSYS_OS_400);
1164 	zend_string *const_OPSYS_OS_400_name = zend_string_init_interned("OPSYS_OS_400", sizeof("OPSYS_OS_400") - 1, 1);
1165 	zend_declare_typed_class_constant(class_entry, const_OPSYS_OS_400_name, &const_OPSYS_OS_400_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1166 	zend_string_release(const_OPSYS_OS_400_name);
1167 #endif
1168 #if defined(ZIP_OPSYS_DEFAULT)
1169 
1170 	zval const_OPSYS_OS_X_value;
1171 	ZVAL_LONG(&const_OPSYS_OS_X_value, ZIP_OPSYS_OS_X);
1172 	zend_string *const_OPSYS_OS_X_name = zend_string_init_interned("OPSYS_OS_X", sizeof("OPSYS_OS_X") - 1, 1);
1173 	zend_declare_typed_class_constant(class_entry, const_OPSYS_OS_X_name, &const_OPSYS_OS_X_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1174 	zend_string_release(const_OPSYS_OS_X_name);
1175 #endif
1176 #if defined(ZIP_OPSYS_DEFAULT)
1177 
1178 	zval const_OPSYS_DEFAULT_value;
1179 	ZVAL_LONG(&const_OPSYS_DEFAULT_value, ZIP_OPSYS_DEFAULT);
1180 	zend_string *const_OPSYS_DEFAULT_name = zend_string_init_interned("OPSYS_DEFAULT", sizeof("OPSYS_DEFAULT") - 1, 1);
1181 	zend_declare_typed_class_constant(class_entry, const_OPSYS_DEFAULT_name, &const_OPSYS_DEFAULT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1182 	zend_string_release(const_OPSYS_DEFAULT_name);
1183 #endif
1184 
1185 	zval const_EM_NONE_value;
1186 	ZVAL_LONG(&const_EM_NONE_value, ZIP_EM_NONE);
1187 	zend_string *const_EM_NONE_name = zend_string_init_interned("EM_NONE", sizeof("EM_NONE") - 1, 1);
1188 	zend_declare_typed_class_constant(class_entry, const_EM_NONE_name, &const_EM_NONE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1189 	zend_string_release(const_EM_NONE_name);
1190 
1191 	zval const_EM_TRAD_PKWARE_value;
1192 	ZVAL_LONG(&const_EM_TRAD_PKWARE_value, ZIP_EM_TRAD_PKWARE);
1193 	zend_string *const_EM_TRAD_PKWARE_name = zend_string_init_interned("EM_TRAD_PKWARE", sizeof("EM_TRAD_PKWARE") - 1, 1);
1194 	zend_declare_typed_class_constant(class_entry, const_EM_TRAD_PKWARE_name, &const_EM_TRAD_PKWARE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1195 	zend_string_release(const_EM_TRAD_PKWARE_name);
1196 #if defined(HAVE_ENCRYPTION)
1197 
1198 	zval const_EM_AES_128_value;
1199 	ZVAL_LONG(&const_EM_AES_128_value, ZIP_EM_AES_128);
1200 	zend_string *const_EM_AES_128_name = zend_string_init_interned("EM_AES_128", sizeof("EM_AES_128") - 1, 1);
1201 	zend_declare_typed_class_constant(class_entry, const_EM_AES_128_name, &const_EM_AES_128_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1202 	zend_string_release(const_EM_AES_128_name);
1203 #endif
1204 #if defined(HAVE_ENCRYPTION)
1205 
1206 	zval const_EM_AES_192_value;
1207 	ZVAL_LONG(&const_EM_AES_192_value, ZIP_EM_AES_192);
1208 	zend_string *const_EM_AES_192_name = zend_string_init_interned("EM_AES_192", sizeof("EM_AES_192") - 1, 1);
1209 	zend_declare_typed_class_constant(class_entry, const_EM_AES_192_name, &const_EM_AES_192_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1210 	zend_string_release(const_EM_AES_192_name);
1211 #endif
1212 #if defined(HAVE_ENCRYPTION)
1213 
1214 	zval const_EM_AES_256_value;
1215 	ZVAL_LONG(&const_EM_AES_256_value, ZIP_EM_AES_256);
1216 	zend_string *const_EM_AES_256_name = zend_string_init_interned("EM_AES_256", sizeof("EM_AES_256") - 1, 1);
1217 	zend_declare_typed_class_constant(class_entry, const_EM_AES_256_name, &const_EM_AES_256_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1218 	zend_string_release(const_EM_AES_256_name);
1219 #endif
1220 
1221 	zval const_EM_UNKNOWN_value;
1222 	ZVAL_LONG(&const_EM_UNKNOWN_value, ZIP_EM_UNKNOWN);
1223 	zend_string *const_EM_UNKNOWN_name = zend_string_init_interned("EM_UNKNOWN", sizeof("EM_UNKNOWN") - 1, 1);
1224 	zend_declare_typed_class_constant(class_entry, const_EM_UNKNOWN_name, &const_EM_UNKNOWN_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1225 	zend_string_release(const_EM_UNKNOWN_name);
1226 
1227 	zval const_LIBZIP_VERSION_value;
1228 	zend_string *const_LIBZIP_VERSION_value_str = zend_string_init(LIBZIP_VERSION_STR, strlen(LIBZIP_VERSION_STR), 1);
1229 	ZVAL_STR(&const_LIBZIP_VERSION_value, const_LIBZIP_VERSION_value_str);
1230 	zend_string *const_LIBZIP_VERSION_name = zend_string_init_interned("LIBZIP_VERSION", sizeof("LIBZIP_VERSION") - 1, 1);
1231 	zend_declare_typed_class_constant(class_entry, const_LIBZIP_VERSION_name, &const_LIBZIP_VERSION_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1232 	zend_string_release(const_LIBZIP_VERSION_name);
1233 
1234 	zval const_LENGTH_TO_END_value;
1235 	ZVAL_LONG(&const_LENGTH_TO_END_value, ZIP_LENGTH_TO_END);
1236 	zend_string *const_LENGTH_TO_END_name = zend_string_init_interned("LENGTH_TO_END", sizeof("LENGTH_TO_END") - 1, 1);
1237 	zend_declare_typed_class_constant(class_entry, const_LENGTH_TO_END_name, &const_LENGTH_TO_END_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1238 	zend_string_release(const_LENGTH_TO_END_name);
1239 #if defined(ZIP_LENGTH_UNCHECKED)
1240 
1241 	zval const_LENGTH_UNCHECKED_value;
1242 	ZVAL_LONG(&const_LENGTH_UNCHECKED_value, ZIP_LENGTH_UNCHECKED);
1243 	zend_string *const_LENGTH_UNCHECKED_name = zend_string_init_interned("LENGTH_UNCHECKED", sizeof("LENGTH_UNCHECKED") - 1, 1);
1244 	zend_declare_typed_class_constant(class_entry, const_LENGTH_UNCHECKED_name, &const_LENGTH_UNCHECKED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1245 	zend_string_release(const_LENGTH_UNCHECKED_name);
1246 #endif
1247 
1248 	zval property_lastId_default_value;
1249 	ZVAL_UNDEF(&property_lastId_default_value);
1250 	zend_string *property_lastId_name = zend_string_init("lastId", sizeof("lastId") - 1, 1);
1251 	zend_declare_typed_property(class_entry, property_lastId_name, &property_lastId_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1252 	zend_string_release(property_lastId_name);
1253 
1254 	zval property_status_default_value;
1255 	ZVAL_UNDEF(&property_status_default_value);
1256 	zend_string *property_status_name = zend_string_init("status", sizeof("status") - 1, 1);
1257 	zend_declare_typed_property(class_entry, property_status_name, &property_status_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1258 	zend_string_release(property_status_name);
1259 
1260 	zval property_statusSys_default_value;
1261 	ZVAL_UNDEF(&property_statusSys_default_value);
1262 	zend_string *property_statusSys_name = zend_string_init("statusSys", sizeof("statusSys") - 1, 1);
1263 	zend_declare_typed_property(class_entry, property_statusSys_name, &property_statusSys_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1264 	zend_string_release(property_statusSys_name);
1265 
1266 	zval property_numFiles_default_value;
1267 	ZVAL_UNDEF(&property_numFiles_default_value);
1268 	zend_string *property_numFiles_name = zend_string_init("numFiles", sizeof("numFiles") - 1, 1);
1269 	zend_declare_typed_property(class_entry, property_numFiles_name, &property_numFiles_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1270 	zend_string_release(property_numFiles_name);
1271 
1272 	zval property_filename_default_value;
1273 	ZVAL_UNDEF(&property_filename_default_value);
1274 	zend_string *property_filename_name = zend_string_init("filename", sizeof("filename") - 1, 1);
1275 	zend_declare_typed_property(class_entry, property_filename_name, &property_filename_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1276 	zend_string_release(property_filename_name);
1277 
1278 	zval property_comment_default_value;
1279 	ZVAL_UNDEF(&property_comment_default_value);
1280 	zend_string *property_comment_name = zend_string_init("comment", sizeof("comment") - 1, 1);
1281 	zend_declare_typed_property(class_entry, property_comment_name, &property_comment_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1282 	zend_string_release(property_comment_name);
1283 
1284 
1285 	zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "setpassword", sizeof("setpassword") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
1286 #if defined(HAVE_ENCRYPTION)
1287 
1288 	zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "setencryptionname", sizeof("setencryptionname") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
1289 #endif
1290 #if defined(HAVE_ENCRYPTION)
1291 
1292 	zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "setencryptionindex", sizeof("setencryptionindex") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
1293 #endif
1294 
1295 	return class_entry;
1296 }
1297