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