xref: /php-src/ext/phar/phar_object_arginfo.h (revision 53cb8967)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 031dc8f07d2d9bac4a5f82f4ac2c5b3da5995405 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar___construct, 0, 0, 1)
5 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS")
7 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, alias, IS_STRING, 1, "null")
8 ZEND_END_ARG_INFO()
9 
10 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar___destruct, 0, 0, 0)
11 ZEND_END_ARG_INFO()
12 
13 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_addEmptyDir, 0, 1, IS_VOID, 0)
14 	ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
15 ZEND_END_ARG_INFO()
16 
17 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_addFile, 0, 1, IS_VOID, 0)
18 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
19 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, localName, IS_STRING, 1, "null")
20 ZEND_END_ARG_INFO()
21 
22 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_addFromString, 0, 2, IS_VOID, 0)
23 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
24 	ZEND_ARG_TYPE_INFO(0, contents, IS_STRING, 0)
25 ZEND_END_ARG_INFO()
26 
27 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_buildFromDirectory, 0, 1, IS_ARRAY, 0)
28 	ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
29 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"\"")
30 ZEND_END_ARG_INFO()
31 
32 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_buildFromIterator, 0, 1, IS_ARRAY, 0)
33 	ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0)
34 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, baseDirectory, IS_STRING, 1, "null")
35 ZEND_END_ARG_INFO()
36 
37 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_compressFiles, 0, 1, IS_VOID, 0)
38 	ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0)
39 ZEND_END_ARG_INFO()
40 
41 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_decompressFiles, 0, 0, IS_TRUE, 0)
42 ZEND_END_ARG_INFO()
43 
44 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_Phar_compress, 0, 1, Phar, 1)
45 	ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0)
46 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extension, IS_STRING, 1, "null")
47 ZEND_END_ARG_INFO()
48 
49 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_Phar_decompress, 0, 0, Phar, 1)
50 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extension, IS_STRING, 1, "null")
51 ZEND_END_ARG_INFO()
52 
53 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_Phar_convertToExecutable, 0, 0, Phar, 1)
54 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_LONG, 1, "null")
55 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compression, IS_LONG, 1, "null")
56 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extension, IS_STRING, 1, "null")
57 ZEND_END_ARG_INFO()
58 
59 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_Phar_convertToData, 0, 0, PharData, 1)
60 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_LONG, 1, "null")
61 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compression, IS_LONG, 1, "null")
62 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extension, IS_STRING, 1, "null")
63 ZEND_END_ARG_INFO()
64 
65 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_copy, 0, 2, IS_TRUE, 0)
66 	ZEND_ARG_TYPE_INFO(0, from, IS_STRING, 0)
67 	ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
68 ZEND_END_ARG_INFO()
69 
70 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_count, 0, 0, IS_LONG, 0)
71 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "COUNT_NORMAL")
72 ZEND_END_ARG_INFO()
73 
74 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_delete, 0, 1, IS_TRUE, 0)
75 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
76 ZEND_END_ARG_INFO()
77 
78 #define arginfo_class_Phar_delMetadata arginfo_class_Phar_decompressFiles
79 
80 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_extractTo, 0, 1, _IS_BOOL, 0)
81 	ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
82 	ZEND_ARG_TYPE_MASK(0, files, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
83 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, overwrite, _IS_BOOL, 0, "false")
84 ZEND_END_ARG_INFO()
85 
86 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_getAlias, 0, 0, IS_STRING, 1)
87 ZEND_END_ARG_INFO()
88 
89 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_getPath, 0, 0, IS_STRING, 0)
90 ZEND_END_ARG_INFO()
91 
92 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_getMetadata, 0, 0, IS_MIXED, 0)
93 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, unserializeOptions, IS_ARRAY, 0, "[]")
94 ZEND_END_ARG_INFO()
95 
96 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_getModified, 0, 0, _IS_BOOL, 0)
97 ZEND_END_ARG_INFO()
98 
99 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_Phar_getSignature, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
100 ZEND_END_ARG_INFO()
101 
102 #define arginfo_class_Phar_getStub arginfo_class_Phar_getPath
103 
104 #define arginfo_class_Phar_getVersion arginfo_class_Phar_getPath
105 
106 #define arginfo_class_Phar_hasMetadata arginfo_class_Phar_getModified
107 
108 #define arginfo_class_Phar_isBuffering arginfo_class_Phar_getModified
109 
110 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_Phar_isCompressed, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
111 ZEND_END_ARG_INFO()
112 
113 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_isFileFormat, 0, 1, _IS_BOOL, 0)
114 	ZEND_ARG_TYPE_INFO(0, format, IS_LONG, 0)
115 ZEND_END_ARG_INFO()
116 
117 #define arginfo_class_Phar_isWritable arginfo_class_Phar_getModified
118 
119 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_offsetExists, 0, 1, _IS_BOOL, 0)
120 	ZEND_ARG_INFO(0, localName)
121 ZEND_END_ARG_INFO()
122 
123 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_Phar_offsetGet, 0, 1, SplFileInfo, 0)
124 	ZEND_ARG_INFO(0, localName)
125 ZEND_END_ARG_INFO()
126 
127 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_offsetSet, 0, 2, IS_VOID, 0)
128 	ZEND_ARG_INFO(0, localName)
129 	ZEND_ARG_INFO(0, value)
130 ZEND_END_ARG_INFO()
131 
132 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_offsetUnset, 0, 1, IS_VOID, 0)
133 	ZEND_ARG_INFO(0, localName)
134 ZEND_END_ARG_INFO()
135 
136 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_setAlias, 0, 1, IS_TRUE, 0)
137 	ZEND_ARG_TYPE_INFO(0, alias, IS_STRING, 0)
138 ZEND_END_ARG_INFO()
139 
140 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_setDefaultStub, 0, 0, IS_TRUE, 0)
141 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, index, IS_STRING, 1, "null")
142 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, webIndex, IS_STRING, 1, "null")
143 ZEND_END_ARG_INFO()
144 
145 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_setMetadata, 0, 1, IS_VOID, 0)
146 	ZEND_ARG_TYPE_INFO(0, metadata, IS_MIXED, 0)
147 ZEND_END_ARG_INFO()
148 
149 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_setSignatureAlgorithm, 0, 1, IS_VOID, 0)
150 	ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
151 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, privateKey, IS_STRING, 1, "null")
152 ZEND_END_ARG_INFO()
153 
154 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_setStub, 0, 1, IS_TRUE, 0)
155 	ZEND_ARG_INFO(0, stub)
156 	ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
157 ZEND_END_ARG_INFO()
158 
159 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_startBuffering, 0, 0, IS_VOID, 0)
160 ZEND_END_ARG_INFO()
161 
162 #define arginfo_class_Phar_stopBuffering arginfo_class_Phar_startBuffering
163 
164 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_apiVersion, 0, 0, IS_STRING, 0)
165 ZEND_END_ARG_INFO()
166 
167 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_canCompress, 0, 0, _IS_BOOL, 0)
168 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compression, IS_LONG, 0, "0")
169 ZEND_END_ARG_INFO()
170 
171 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_canWrite, 0, 0, _IS_BOOL, 0)
172 ZEND_END_ARG_INFO()
173 
174 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_createDefaultStub, 0, 0, IS_STRING, 0)
175 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, index, IS_STRING, 1, "null")
176 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, webIndex, IS_STRING, 1, "null")
177 ZEND_END_ARG_INFO()
178 
179 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_getSupportedCompression, 0, 0, IS_ARRAY, 0)
180 ZEND_END_ARG_INFO()
181 
182 #define arginfo_class_Phar_getSupportedSignatures arginfo_class_Phar_getSupportedCompression
183 
184 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_interceptFileFuncs, 0, 0, IS_VOID, 0)
185 ZEND_END_ARG_INFO()
186 
187 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_isValidPharFilename, 0, 1, _IS_BOOL, 0)
188 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
189 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, executable, _IS_BOOL, 0, "true")
190 ZEND_END_ARG_INFO()
191 
192 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_loadPhar, 0, 1, _IS_BOOL, 0)
193 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
194 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, alias, IS_STRING, 1, "null")
195 ZEND_END_ARG_INFO()
196 
197 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_mapPhar, 0, 0, _IS_BOOL, 0)
198 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, alias, IS_STRING, 1, "null")
199 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, "0")
200 ZEND_END_ARG_INFO()
201 
202 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_running, 0, 0, IS_STRING, 0)
203 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, returnPhar, _IS_BOOL, 0, "true")
204 ZEND_END_ARG_INFO()
205 
206 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_mount, 0, 2, IS_VOID, 0)
207 	ZEND_ARG_TYPE_INFO(0, pharPath, IS_STRING, 0)
208 	ZEND_ARG_TYPE_INFO(0, externalPath, IS_STRING, 0)
209 ZEND_END_ARG_INFO()
210 
211 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_mungServer, 0, 1, IS_VOID, 0)
212 	ZEND_ARG_TYPE_INFO(0, variables, IS_ARRAY, 0)
213 ZEND_END_ARG_INFO()
214 
215 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_unlinkArchive, 0, 1, IS_TRUE, 0)
216 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
217 ZEND_END_ARG_INFO()
218 
219 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_webPhar, 0, 0, IS_VOID, 0)
220 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, alias, IS_STRING, 1, "null")
221 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, index, IS_STRING, 1, "null")
222 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fileNotFoundScript, IS_STRING, 1, "null")
223 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mimeTypes, IS_ARRAY, 0, "[]")
224 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, rewrite, IS_CALLABLE, 1, "null")
225 ZEND_END_ARG_INFO()
226 
227 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PharData___construct, 0, 0, 1)
228 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
229 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS")
230 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, alias, IS_STRING, 1, "null")
231 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_LONG, 0, "0")
232 ZEND_END_ARG_INFO()
233 
234 #define arginfo_class_PharData___destruct arginfo_class_Phar___destruct
235 
236 #define arginfo_class_PharData_addEmptyDir arginfo_class_Phar_addEmptyDir
237 
238 #define arginfo_class_PharData_addFile arginfo_class_Phar_addFile
239 
240 #define arginfo_class_PharData_addFromString arginfo_class_Phar_addFromString
241 
242 #define arginfo_class_PharData_buildFromDirectory arginfo_class_Phar_buildFromDirectory
243 
244 #define arginfo_class_PharData_buildFromIterator arginfo_class_Phar_buildFromIterator
245 
246 #define arginfo_class_PharData_compressFiles arginfo_class_Phar_compressFiles
247 
248 #define arginfo_class_PharData_decompressFiles arginfo_class_Phar_decompressFiles
249 
250 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_PharData_compress, 0, 1, PharData, 1)
251 	ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0)
252 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extension, IS_STRING, 1, "null")
253 ZEND_END_ARG_INFO()
254 
255 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_PharData_decompress, 0, 0, PharData, 1)
256 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extension, IS_STRING, 1, "null")
257 ZEND_END_ARG_INFO()
258 
259 #define arginfo_class_PharData_convertToExecutable arginfo_class_Phar_convertToExecutable
260 
261 #define arginfo_class_PharData_convertToData arginfo_class_Phar_convertToData
262 
263 #define arginfo_class_PharData_copy arginfo_class_Phar_copy
264 
265 #define arginfo_class_PharData_count arginfo_class_Phar_count
266 
267 #define arginfo_class_PharData_delete arginfo_class_Phar_delete
268 
269 #define arginfo_class_PharData_delMetadata arginfo_class_Phar_decompressFiles
270 
271 #define arginfo_class_PharData_extractTo arginfo_class_Phar_extractTo
272 
273 #define arginfo_class_PharData_getAlias arginfo_class_Phar_getAlias
274 
275 #define arginfo_class_PharData_getPath arginfo_class_Phar_getPath
276 
277 #define arginfo_class_PharData_getMetadata arginfo_class_Phar_getMetadata
278 
279 #define arginfo_class_PharData_getModified arginfo_class_Phar_getModified
280 
281 #define arginfo_class_PharData_getSignature arginfo_class_Phar_getSignature
282 
283 #define arginfo_class_PharData_getStub arginfo_class_Phar_getPath
284 
285 #define arginfo_class_PharData_getVersion arginfo_class_Phar_getPath
286 
287 #define arginfo_class_PharData_hasMetadata arginfo_class_Phar_getModified
288 
289 #define arginfo_class_PharData_isBuffering arginfo_class_Phar_getModified
290 
291 #define arginfo_class_PharData_isCompressed arginfo_class_Phar_isCompressed
292 
293 #define arginfo_class_PharData_isFileFormat arginfo_class_Phar_isFileFormat
294 
295 #define arginfo_class_PharData_isWritable arginfo_class_Phar_getModified
296 
297 #define arginfo_class_PharData_offsetExists arginfo_class_Phar_offsetExists
298 
299 #define arginfo_class_PharData_offsetGet arginfo_class_Phar_offsetGet
300 
301 #define arginfo_class_PharData_offsetSet arginfo_class_Phar_offsetSet
302 
303 #define arginfo_class_PharData_offsetUnset arginfo_class_Phar_offsetUnset
304 
305 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PharData_setAlias, 0, 1, _IS_BOOL, 0)
306 	ZEND_ARG_TYPE_INFO(0, alias, IS_STRING, 0)
307 ZEND_END_ARG_INFO()
308 
309 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PharData_setDefaultStub, 0, 0, _IS_BOOL, 0)
310 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, index, IS_STRING, 1, "null")
311 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, webIndex, IS_STRING, 1, "null")
312 ZEND_END_ARG_INFO()
313 
314 #define arginfo_class_PharData_setMetadata arginfo_class_Phar_setMetadata
315 
316 #define arginfo_class_PharData_setSignatureAlgorithm arginfo_class_Phar_setSignatureAlgorithm
317 
318 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PharData_setStub, 0, 1, IS_TRUE, 0)
319 	ZEND_ARG_INFO(0, stub)
320 	ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
321 ZEND_END_ARG_INFO()
322 
323 #define arginfo_class_PharData_startBuffering arginfo_class_Phar_startBuffering
324 
325 #define arginfo_class_PharData_stopBuffering arginfo_class_Phar_startBuffering
326 
327 #define arginfo_class_PharData_apiVersion arginfo_class_Phar_apiVersion
328 
329 #define arginfo_class_PharData_canCompress arginfo_class_Phar_canCompress
330 
331 #define arginfo_class_PharData_canWrite arginfo_class_Phar_canWrite
332 
333 #define arginfo_class_PharData_createDefaultStub arginfo_class_Phar_createDefaultStub
334 
335 #define arginfo_class_PharData_getSupportedCompression arginfo_class_Phar_getSupportedCompression
336 
337 #define arginfo_class_PharData_getSupportedSignatures arginfo_class_Phar_getSupportedCompression
338 
339 #define arginfo_class_PharData_interceptFileFuncs arginfo_class_Phar_interceptFileFuncs
340 
341 #define arginfo_class_PharData_isValidPharFilename arginfo_class_Phar_isValidPharFilename
342 
343 #define arginfo_class_PharData_loadPhar arginfo_class_Phar_loadPhar
344 
345 #define arginfo_class_PharData_mapPhar arginfo_class_Phar_mapPhar
346 
347 #define arginfo_class_PharData_running arginfo_class_Phar_running
348 
349 #define arginfo_class_PharData_mount arginfo_class_Phar_mount
350 
351 #define arginfo_class_PharData_mungServer arginfo_class_Phar_mungServer
352 
353 #define arginfo_class_PharData_unlinkArchive arginfo_class_Phar_unlinkArchive
354 
355 #define arginfo_class_PharData_webPhar arginfo_class_Phar_webPhar
356 
357 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PharFileInfo___construct, 0, 0, 1)
358 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
359 ZEND_END_ARG_INFO()
360 
361 #define arginfo_class_PharFileInfo___destruct arginfo_class_Phar___destruct
362 
363 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PharFileInfo_chmod, 0, 1, IS_VOID, 0)
364 	ZEND_ARG_TYPE_INFO(0, perms, IS_LONG, 0)
365 ZEND_END_ARG_INFO()
366 
367 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PharFileInfo_compress, 0, 1, IS_TRUE, 0)
368 	ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0)
369 ZEND_END_ARG_INFO()
370 
371 #define arginfo_class_PharFileInfo_decompress arginfo_class_Phar_decompressFiles
372 
373 #define arginfo_class_PharFileInfo_delMetadata arginfo_class_Phar_decompressFiles
374 
375 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PharFileInfo_getCompressedSize, 0, 0, IS_LONG, 0)
376 ZEND_END_ARG_INFO()
377 
378 #define arginfo_class_PharFileInfo_getCRC32 arginfo_class_PharFileInfo_getCompressedSize
379 
380 #define arginfo_class_PharFileInfo_getContent arginfo_class_Phar_getPath
381 
382 #define arginfo_class_PharFileInfo_getMetadata arginfo_class_Phar_getMetadata
383 
384 #define arginfo_class_PharFileInfo_getPharFlags arginfo_class_PharFileInfo_getCompressedSize
385 
386 #define arginfo_class_PharFileInfo_hasMetadata arginfo_class_Phar_getModified
387 
388 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PharFileInfo_isCompressed, 0, 0, _IS_BOOL, 0)
389 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compression, IS_LONG, 1, "null")
390 ZEND_END_ARG_INFO()
391 
392 #define arginfo_class_PharFileInfo_isCRCChecked arginfo_class_Phar_getModified
393 
394 #define arginfo_class_PharFileInfo_setMetadata arginfo_class_Phar_setMetadata
395 
396 ZEND_METHOD(Phar, __construct);
397 ZEND_METHOD(Phar, __destruct);
398 ZEND_METHOD(Phar, addEmptyDir);
399 ZEND_METHOD(Phar, addFile);
400 ZEND_METHOD(Phar, addFromString);
401 ZEND_METHOD(Phar, buildFromDirectory);
402 ZEND_METHOD(Phar, buildFromIterator);
403 ZEND_METHOD(Phar, compressFiles);
404 ZEND_METHOD(Phar, decompressFiles);
405 ZEND_METHOD(Phar, compress);
406 ZEND_METHOD(Phar, decompress);
407 ZEND_METHOD(Phar, convertToExecutable);
408 ZEND_METHOD(Phar, convertToData);
409 ZEND_METHOD(Phar, copy);
410 ZEND_METHOD(Phar, count);
411 ZEND_METHOD(Phar, delete);
412 ZEND_METHOD(Phar, delMetadata);
413 ZEND_METHOD(Phar, extractTo);
414 ZEND_METHOD(Phar, getAlias);
415 ZEND_METHOD(Phar, getPath);
416 ZEND_METHOD(Phar, getMetadata);
417 ZEND_METHOD(Phar, getModified);
418 ZEND_METHOD(Phar, getSignature);
419 ZEND_METHOD(Phar, getStub);
420 ZEND_METHOD(Phar, getVersion);
421 ZEND_METHOD(Phar, hasMetadata);
422 ZEND_METHOD(Phar, isBuffering);
423 ZEND_METHOD(Phar, isCompressed);
424 ZEND_METHOD(Phar, isFileFormat);
425 ZEND_METHOD(Phar, isWritable);
426 ZEND_METHOD(Phar, offsetExists);
427 ZEND_METHOD(Phar, offsetGet);
428 ZEND_METHOD(Phar, offsetSet);
429 ZEND_METHOD(Phar, offsetUnset);
430 ZEND_METHOD(Phar, setAlias);
431 ZEND_METHOD(Phar, setDefaultStub);
432 ZEND_METHOD(Phar, setMetadata);
433 ZEND_METHOD(Phar, setSignatureAlgorithm);
434 ZEND_METHOD(Phar, setStub);
435 ZEND_METHOD(Phar, startBuffering);
436 ZEND_METHOD(Phar, stopBuffering);
437 ZEND_METHOD(Phar, apiVersion);
438 ZEND_METHOD(Phar, canCompress);
439 ZEND_METHOD(Phar, canWrite);
440 ZEND_METHOD(Phar, createDefaultStub);
441 ZEND_METHOD(Phar, getSupportedCompression);
442 ZEND_METHOD(Phar, getSupportedSignatures);
443 ZEND_METHOD(Phar, interceptFileFuncs);
444 ZEND_METHOD(Phar, isValidPharFilename);
445 ZEND_METHOD(Phar, loadPhar);
446 ZEND_METHOD(Phar, mapPhar);
447 ZEND_METHOD(Phar, running);
448 ZEND_METHOD(Phar, mount);
449 ZEND_METHOD(Phar, mungServer);
450 ZEND_METHOD(Phar, unlinkArchive);
451 ZEND_METHOD(Phar, webPhar);
452 ZEND_METHOD(PharFileInfo, __construct);
453 ZEND_METHOD(PharFileInfo, __destruct);
454 ZEND_METHOD(PharFileInfo, chmod);
455 ZEND_METHOD(PharFileInfo, compress);
456 ZEND_METHOD(PharFileInfo, decompress);
457 ZEND_METHOD(PharFileInfo, delMetadata);
458 ZEND_METHOD(PharFileInfo, getCompressedSize);
459 ZEND_METHOD(PharFileInfo, getCRC32);
460 ZEND_METHOD(PharFileInfo, getContent);
461 ZEND_METHOD(PharFileInfo, getMetadata);
462 ZEND_METHOD(PharFileInfo, getPharFlags);
463 ZEND_METHOD(PharFileInfo, hasMetadata);
464 ZEND_METHOD(PharFileInfo, isCompressed);
465 ZEND_METHOD(PharFileInfo, isCRCChecked);
466 ZEND_METHOD(PharFileInfo, setMetadata);
467 
468 static const zend_function_entry class_Phar_methods[] = {
469 	ZEND_ME(Phar, __construct, arginfo_class_Phar___construct, ZEND_ACC_PUBLIC)
470 	ZEND_ME(Phar, __destruct, arginfo_class_Phar___destruct, ZEND_ACC_PUBLIC)
471 	ZEND_ME(Phar, addEmptyDir, arginfo_class_Phar_addEmptyDir, ZEND_ACC_PUBLIC)
472 	ZEND_ME(Phar, addFile, arginfo_class_Phar_addFile, ZEND_ACC_PUBLIC)
473 	ZEND_ME(Phar, addFromString, arginfo_class_Phar_addFromString, ZEND_ACC_PUBLIC)
474 	ZEND_ME(Phar, buildFromDirectory, arginfo_class_Phar_buildFromDirectory, ZEND_ACC_PUBLIC)
475 	ZEND_ME(Phar, buildFromIterator, arginfo_class_Phar_buildFromIterator, ZEND_ACC_PUBLIC)
476 	ZEND_ME(Phar, compressFiles, arginfo_class_Phar_compressFiles, ZEND_ACC_PUBLIC)
477 	ZEND_ME(Phar, decompressFiles, arginfo_class_Phar_decompressFiles, ZEND_ACC_PUBLIC)
478 	ZEND_ME(Phar, compress, arginfo_class_Phar_compress, ZEND_ACC_PUBLIC)
479 	ZEND_ME(Phar, decompress, arginfo_class_Phar_decompress, ZEND_ACC_PUBLIC)
480 	ZEND_ME(Phar, convertToExecutable, arginfo_class_Phar_convertToExecutable, ZEND_ACC_PUBLIC)
481 	ZEND_ME(Phar, convertToData, arginfo_class_Phar_convertToData, ZEND_ACC_PUBLIC)
482 	ZEND_ME(Phar, copy, arginfo_class_Phar_copy, ZEND_ACC_PUBLIC)
483 	ZEND_ME(Phar, count, arginfo_class_Phar_count, ZEND_ACC_PUBLIC)
484 	ZEND_ME(Phar, delete, arginfo_class_Phar_delete, ZEND_ACC_PUBLIC)
485 	ZEND_ME(Phar, delMetadata, arginfo_class_Phar_delMetadata, ZEND_ACC_PUBLIC)
486 	ZEND_ME(Phar, extractTo, arginfo_class_Phar_extractTo, ZEND_ACC_PUBLIC)
487 	ZEND_ME(Phar, getAlias, arginfo_class_Phar_getAlias, ZEND_ACC_PUBLIC)
488 	ZEND_ME(Phar, getPath, arginfo_class_Phar_getPath, ZEND_ACC_PUBLIC)
489 	ZEND_ME(Phar, getMetadata, arginfo_class_Phar_getMetadata, ZEND_ACC_PUBLIC)
490 	ZEND_ME(Phar, getModified, arginfo_class_Phar_getModified, ZEND_ACC_PUBLIC)
491 	ZEND_ME(Phar, getSignature, arginfo_class_Phar_getSignature, ZEND_ACC_PUBLIC)
492 	ZEND_ME(Phar, getStub, arginfo_class_Phar_getStub, ZEND_ACC_PUBLIC)
493 	ZEND_ME(Phar, getVersion, arginfo_class_Phar_getVersion, ZEND_ACC_PUBLIC)
494 	ZEND_ME(Phar, hasMetadata, arginfo_class_Phar_hasMetadata, ZEND_ACC_PUBLIC)
495 	ZEND_ME(Phar, isBuffering, arginfo_class_Phar_isBuffering, ZEND_ACC_PUBLIC)
496 	ZEND_ME(Phar, isCompressed, arginfo_class_Phar_isCompressed, ZEND_ACC_PUBLIC)
497 	ZEND_ME(Phar, isFileFormat, arginfo_class_Phar_isFileFormat, ZEND_ACC_PUBLIC)
498 	ZEND_ME(Phar, isWritable, arginfo_class_Phar_isWritable, ZEND_ACC_PUBLIC)
499 	ZEND_ME(Phar, offsetExists, arginfo_class_Phar_offsetExists, ZEND_ACC_PUBLIC)
500 	ZEND_ME(Phar, offsetGet, arginfo_class_Phar_offsetGet, ZEND_ACC_PUBLIC)
501 	ZEND_ME(Phar, offsetSet, arginfo_class_Phar_offsetSet, ZEND_ACC_PUBLIC)
502 	ZEND_ME(Phar, offsetUnset, arginfo_class_Phar_offsetUnset, ZEND_ACC_PUBLIC)
503 	ZEND_ME(Phar, setAlias, arginfo_class_Phar_setAlias, ZEND_ACC_PUBLIC)
504 	ZEND_ME(Phar, setDefaultStub, arginfo_class_Phar_setDefaultStub, ZEND_ACC_PUBLIC)
505 	ZEND_ME(Phar, setMetadata, arginfo_class_Phar_setMetadata, ZEND_ACC_PUBLIC)
506 	ZEND_ME(Phar, setSignatureAlgorithm, arginfo_class_Phar_setSignatureAlgorithm, ZEND_ACC_PUBLIC)
507 	ZEND_ME(Phar, setStub, arginfo_class_Phar_setStub, ZEND_ACC_PUBLIC)
508 	ZEND_ME(Phar, startBuffering, arginfo_class_Phar_startBuffering, ZEND_ACC_PUBLIC)
509 	ZEND_ME(Phar, stopBuffering, arginfo_class_Phar_stopBuffering, ZEND_ACC_PUBLIC)
510 	ZEND_ME(Phar, apiVersion, arginfo_class_Phar_apiVersion, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
511 	ZEND_ME(Phar, canCompress, arginfo_class_Phar_canCompress, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
512 	ZEND_ME(Phar, canWrite, arginfo_class_Phar_canWrite, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
513 	ZEND_ME(Phar, createDefaultStub, arginfo_class_Phar_createDefaultStub, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
514 	ZEND_ME(Phar, getSupportedCompression, arginfo_class_Phar_getSupportedCompression, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
515 	ZEND_ME(Phar, getSupportedSignatures, arginfo_class_Phar_getSupportedSignatures, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
516 	ZEND_ME(Phar, interceptFileFuncs, arginfo_class_Phar_interceptFileFuncs, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
517 	ZEND_ME(Phar, isValidPharFilename, arginfo_class_Phar_isValidPharFilename, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
518 	ZEND_ME(Phar, loadPhar, arginfo_class_Phar_loadPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
519 	ZEND_ME(Phar, mapPhar, arginfo_class_Phar_mapPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
520 	ZEND_ME(Phar, running, arginfo_class_Phar_running, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
521 	ZEND_ME(Phar, mount, arginfo_class_Phar_mount, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
522 	ZEND_ME(Phar, mungServer, arginfo_class_Phar_mungServer, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
523 	ZEND_ME(Phar, unlinkArchive, arginfo_class_Phar_unlinkArchive, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
524 	ZEND_ME(Phar, webPhar, arginfo_class_Phar_webPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL)
525 	ZEND_FE_END
526 };
527 
528 static const zend_function_entry class_PharData_methods[] = {
529 	ZEND_RAW_FENTRY("__construct", zim_Phar___construct, arginfo_class_PharData___construct, ZEND_ACC_PUBLIC, NULL, NULL)
530 	ZEND_RAW_FENTRY("__destruct", zim_Phar___destruct, arginfo_class_PharData___destruct, ZEND_ACC_PUBLIC, NULL, NULL)
531 	ZEND_RAW_FENTRY("addEmptyDir", zim_Phar_addEmptyDir, arginfo_class_PharData_addEmptyDir, ZEND_ACC_PUBLIC, NULL, NULL)
532 	ZEND_RAW_FENTRY("addFile", zim_Phar_addFile, arginfo_class_PharData_addFile, ZEND_ACC_PUBLIC, NULL, NULL)
533 	ZEND_RAW_FENTRY("addFromString", zim_Phar_addFromString, arginfo_class_PharData_addFromString, ZEND_ACC_PUBLIC, NULL, NULL)
534 	ZEND_RAW_FENTRY("buildFromDirectory", zim_Phar_buildFromDirectory, arginfo_class_PharData_buildFromDirectory, ZEND_ACC_PUBLIC, NULL, NULL)
535 	ZEND_RAW_FENTRY("buildFromIterator", zim_Phar_buildFromIterator, arginfo_class_PharData_buildFromIterator, ZEND_ACC_PUBLIC, NULL, NULL)
536 	ZEND_RAW_FENTRY("compressFiles", zim_Phar_compressFiles, arginfo_class_PharData_compressFiles, ZEND_ACC_PUBLIC, NULL, NULL)
537 	ZEND_RAW_FENTRY("decompressFiles", zim_Phar_decompressFiles, arginfo_class_PharData_decompressFiles, ZEND_ACC_PUBLIC, NULL, NULL)
538 	ZEND_RAW_FENTRY("compress", zim_Phar_compress, arginfo_class_PharData_compress, ZEND_ACC_PUBLIC, NULL, NULL)
539 	ZEND_RAW_FENTRY("decompress", zim_Phar_decompress, arginfo_class_PharData_decompress, ZEND_ACC_PUBLIC, NULL, NULL)
540 	ZEND_RAW_FENTRY("convertToExecutable", zim_Phar_convertToExecutable, arginfo_class_PharData_convertToExecutable, ZEND_ACC_PUBLIC, NULL, NULL)
541 	ZEND_RAW_FENTRY("convertToData", zim_Phar_convertToData, arginfo_class_PharData_convertToData, ZEND_ACC_PUBLIC, NULL, NULL)
542 	ZEND_RAW_FENTRY("copy", zim_Phar_copy, arginfo_class_PharData_copy, ZEND_ACC_PUBLIC, NULL, NULL)
543 	ZEND_RAW_FENTRY("count", zim_Phar_count, arginfo_class_PharData_count, ZEND_ACC_PUBLIC, NULL, NULL)
544 	ZEND_RAW_FENTRY("delete", zim_Phar_delete, arginfo_class_PharData_delete, ZEND_ACC_PUBLIC, NULL, NULL)
545 	ZEND_RAW_FENTRY("delMetadata", zim_Phar_delMetadata, arginfo_class_PharData_delMetadata, ZEND_ACC_PUBLIC, NULL, NULL)
546 	ZEND_RAW_FENTRY("extractTo", zim_Phar_extractTo, arginfo_class_PharData_extractTo, ZEND_ACC_PUBLIC, NULL, NULL)
547 	ZEND_RAW_FENTRY("getAlias", zim_Phar_getAlias, arginfo_class_PharData_getAlias, ZEND_ACC_PUBLIC, NULL, NULL)
548 	ZEND_RAW_FENTRY("getPath", zim_Phar_getPath, arginfo_class_PharData_getPath, ZEND_ACC_PUBLIC, NULL, NULL)
549 	ZEND_RAW_FENTRY("getMetadata", zim_Phar_getMetadata, arginfo_class_PharData_getMetadata, ZEND_ACC_PUBLIC, NULL, NULL)
550 	ZEND_RAW_FENTRY("getModified", zim_Phar_getModified, arginfo_class_PharData_getModified, ZEND_ACC_PUBLIC, NULL, NULL)
551 	ZEND_RAW_FENTRY("getSignature", zim_Phar_getSignature, arginfo_class_PharData_getSignature, ZEND_ACC_PUBLIC, NULL, NULL)
552 	ZEND_RAW_FENTRY("getStub", zim_Phar_getStub, arginfo_class_PharData_getStub, ZEND_ACC_PUBLIC, NULL, NULL)
553 	ZEND_RAW_FENTRY("getVersion", zim_Phar_getVersion, arginfo_class_PharData_getVersion, ZEND_ACC_PUBLIC, NULL, NULL)
554 	ZEND_RAW_FENTRY("hasMetadata", zim_Phar_hasMetadata, arginfo_class_PharData_hasMetadata, ZEND_ACC_PUBLIC, NULL, NULL)
555 	ZEND_RAW_FENTRY("isBuffering", zim_Phar_isBuffering, arginfo_class_PharData_isBuffering, ZEND_ACC_PUBLIC, NULL, NULL)
556 	ZEND_RAW_FENTRY("isCompressed", zim_Phar_isCompressed, arginfo_class_PharData_isCompressed, ZEND_ACC_PUBLIC, NULL, NULL)
557 	ZEND_RAW_FENTRY("isFileFormat", zim_Phar_isFileFormat, arginfo_class_PharData_isFileFormat, ZEND_ACC_PUBLIC, NULL, NULL)
558 	ZEND_RAW_FENTRY("isWritable", zim_Phar_isWritable, arginfo_class_PharData_isWritable, ZEND_ACC_PUBLIC, NULL, NULL)
559 	ZEND_RAW_FENTRY("offsetExists", zim_Phar_offsetExists, arginfo_class_PharData_offsetExists, ZEND_ACC_PUBLIC, NULL, NULL)
560 	ZEND_RAW_FENTRY("offsetGet", zim_Phar_offsetGet, arginfo_class_PharData_offsetGet, ZEND_ACC_PUBLIC, NULL, NULL)
561 	ZEND_RAW_FENTRY("offsetSet", zim_Phar_offsetSet, arginfo_class_PharData_offsetSet, ZEND_ACC_PUBLIC, NULL, NULL)
562 	ZEND_RAW_FENTRY("offsetUnset", zim_Phar_offsetUnset, arginfo_class_PharData_offsetUnset, ZEND_ACC_PUBLIC, NULL, NULL)
563 	ZEND_RAW_FENTRY("setAlias", zim_Phar_setAlias, arginfo_class_PharData_setAlias, ZEND_ACC_PUBLIC, NULL, NULL)
564 	ZEND_RAW_FENTRY("setDefaultStub", zim_Phar_setDefaultStub, arginfo_class_PharData_setDefaultStub, ZEND_ACC_PUBLIC, NULL, NULL)
565 	ZEND_RAW_FENTRY("setMetadata", zim_Phar_setMetadata, arginfo_class_PharData_setMetadata, ZEND_ACC_PUBLIC, NULL, NULL)
566 	ZEND_RAW_FENTRY("setSignatureAlgorithm", zim_Phar_setSignatureAlgorithm, arginfo_class_PharData_setSignatureAlgorithm, ZEND_ACC_PUBLIC, NULL, NULL)
567 	ZEND_RAW_FENTRY("setStub", zim_Phar_setStub, arginfo_class_PharData_setStub, ZEND_ACC_PUBLIC, NULL, NULL)
568 	ZEND_RAW_FENTRY("startBuffering", zim_Phar_startBuffering, arginfo_class_PharData_startBuffering, ZEND_ACC_PUBLIC, NULL, NULL)
569 	ZEND_RAW_FENTRY("stopBuffering", zim_Phar_stopBuffering, arginfo_class_PharData_stopBuffering, ZEND_ACC_PUBLIC, NULL, NULL)
570 	ZEND_RAW_FENTRY("apiVersion", zim_Phar_apiVersion, arginfo_class_PharData_apiVersion, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
571 	ZEND_RAW_FENTRY("canCompress", zim_Phar_canCompress, arginfo_class_PharData_canCompress, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
572 	ZEND_RAW_FENTRY("canWrite", zim_Phar_canWrite, arginfo_class_PharData_canWrite, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
573 	ZEND_RAW_FENTRY("createDefaultStub", zim_Phar_createDefaultStub, arginfo_class_PharData_createDefaultStub, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
574 	ZEND_RAW_FENTRY("getSupportedCompression", zim_Phar_getSupportedCompression, arginfo_class_PharData_getSupportedCompression, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
575 	ZEND_RAW_FENTRY("getSupportedSignatures", zim_Phar_getSupportedSignatures, arginfo_class_PharData_getSupportedSignatures, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
576 	ZEND_RAW_FENTRY("interceptFileFuncs", zim_Phar_interceptFileFuncs, arginfo_class_PharData_interceptFileFuncs, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
577 	ZEND_RAW_FENTRY("isValidPharFilename", zim_Phar_isValidPharFilename, arginfo_class_PharData_isValidPharFilename, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
578 	ZEND_RAW_FENTRY("loadPhar", zim_Phar_loadPhar, arginfo_class_PharData_loadPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
579 	ZEND_RAW_FENTRY("mapPhar", zim_Phar_mapPhar, arginfo_class_PharData_mapPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
580 	ZEND_RAW_FENTRY("running", zim_Phar_running, arginfo_class_PharData_running, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
581 	ZEND_RAW_FENTRY("mount", zim_Phar_mount, arginfo_class_PharData_mount, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
582 	ZEND_RAW_FENTRY("mungServer", zim_Phar_mungServer, arginfo_class_PharData_mungServer, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
583 	ZEND_RAW_FENTRY("unlinkArchive", zim_Phar_unlinkArchive, arginfo_class_PharData_unlinkArchive, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
584 	ZEND_RAW_FENTRY("webPhar", zim_Phar_webPhar, arginfo_class_PharData_webPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL, NULL, NULL)
585 	ZEND_FE_END
586 };
587 
588 static const zend_function_entry class_PharFileInfo_methods[] = {
589 	ZEND_ME(PharFileInfo, __construct, arginfo_class_PharFileInfo___construct, ZEND_ACC_PUBLIC)
590 	ZEND_ME(PharFileInfo, __destruct, arginfo_class_PharFileInfo___destruct, ZEND_ACC_PUBLIC)
591 	ZEND_ME(PharFileInfo, chmod, arginfo_class_PharFileInfo_chmod, ZEND_ACC_PUBLIC)
592 	ZEND_ME(PharFileInfo, compress, arginfo_class_PharFileInfo_compress, ZEND_ACC_PUBLIC)
593 	ZEND_ME(PharFileInfo, decompress, arginfo_class_PharFileInfo_decompress, ZEND_ACC_PUBLIC)
594 	ZEND_ME(PharFileInfo, delMetadata, arginfo_class_PharFileInfo_delMetadata, ZEND_ACC_PUBLIC)
595 	ZEND_ME(PharFileInfo, getCompressedSize, arginfo_class_PharFileInfo_getCompressedSize, ZEND_ACC_PUBLIC)
596 	ZEND_ME(PharFileInfo, getCRC32, arginfo_class_PharFileInfo_getCRC32, ZEND_ACC_PUBLIC)
597 	ZEND_ME(PharFileInfo, getContent, arginfo_class_PharFileInfo_getContent, ZEND_ACC_PUBLIC)
598 	ZEND_ME(PharFileInfo, getMetadata, arginfo_class_PharFileInfo_getMetadata, ZEND_ACC_PUBLIC)
599 	ZEND_ME(PharFileInfo, getPharFlags, arginfo_class_PharFileInfo_getPharFlags, ZEND_ACC_PUBLIC)
600 	ZEND_ME(PharFileInfo, hasMetadata, arginfo_class_PharFileInfo_hasMetadata, ZEND_ACC_PUBLIC)
601 	ZEND_ME(PharFileInfo, isCompressed, arginfo_class_PharFileInfo_isCompressed, ZEND_ACC_PUBLIC)
602 	ZEND_ME(PharFileInfo, isCRCChecked, arginfo_class_PharFileInfo_isCRCChecked, ZEND_ACC_PUBLIC)
603 	ZEND_ME(PharFileInfo, setMetadata, arginfo_class_PharFileInfo_setMetadata, ZEND_ACC_PUBLIC)
604 	ZEND_FE_END
605 };
606 
register_class_PharException(zend_class_entry * class_entry_Exception)607 static zend_class_entry *register_class_PharException(zend_class_entry *class_entry_Exception)
608 {
609 	zend_class_entry ce, *class_entry;
610 
611 	INIT_CLASS_ENTRY(ce, "PharException", NULL);
612 	class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Exception, 0);
613 
614 	return class_entry;
615 }
616 
register_class_Phar(zend_class_entry * class_entry_RecursiveDirectoryIterator,zend_class_entry * class_entry_Countable,zend_class_entry * class_entry_ArrayAccess)617 static zend_class_entry *register_class_Phar(zend_class_entry *class_entry_RecursiveDirectoryIterator, zend_class_entry *class_entry_Countable, zend_class_entry *class_entry_ArrayAccess)
618 {
619 	zend_class_entry ce, *class_entry;
620 
621 	INIT_CLASS_ENTRY(ce, "Phar", class_Phar_methods);
622 	class_entry = zend_register_internal_class_with_flags(&ce, class_entry_RecursiveDirectoryIterator, 0);
623 	zend_class_implements(class_entry, 2, class_entry_Countable, class_entry_ArrayAccess);
624 
625 	zval const_BZ2_value;
626 	ZVAL_LONG(&const_BZ2_value, PHAR_ENT_COMPRESSED_BZ2);
627 	zend_string *const_BZ2_name = zend_string_init_interned("BZ2", sizeof("BZ2") - 1, 1);
628 	zend_declare_typed_class_constant(class_entry, const_BZ2_name, &const_BZ2_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
629 	zend_string_release(const_BZ2_name);
630 
631 	zval const_GZ_value;
632 	ZVAL_LONG(&const_GZ_value, PHAR_ENT_COMPRESSED_GZ);
633 	zend_string *const_GZ_name = zend_string_init_interned("GZ", sizeof("GZ") - 1, 1);
634 	zend_declare_typed_class_constant(class_entry, const_GZ_name, &const_GZ_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
635 	zend_string_release(const_GZ_name);
636 
637 	zval const_NONE_value;
638 	ZVAL_LONG(&const_NONE_value, PHAR_ENT_COMPRESSED_NONE);
639 	zend_string *const_NONE_name = zend_string_init_interned("NONE", sizeof("NONE") - 1, 1);
640 	zend_declare_typed_class_constant(class_entry, const_NONE_name, &const_NONE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
641 	zend_string_release(const_NONE_name);
642 
643 	zval const_PHAR_value;
644 	ZVAL_LONG(&const_PHAR_value, PHAR_FORMAT_PHAR);
645 	zend_string *const_PHAR_name = zend_string_init_interned("PHAR", sizeof("PHAR") - 1, 1);
646 	zend_declare_typed_class_constant(class_entry, const_PHAR_name, &const_PHAR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
647 	zend_string_release(const_PHAR_name);
648 
649 	zval const_TAR_value;
650 	ZVAL_LONG(&const_TAR_value, PHAR_FORMAT_TAR);
651 	zend_string *const_TAR_name = zend_string_init_interned("TAR", sizeof("TAR") - 1, 1);
652 	zend_declare_typed_class_constant(class_entry, const_TAR_name, &const_TAR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
653 	zend_string_release(const_TAR_name);
654 
655 	zval const_ZIP_value;
656 	ZVAL_LONG(&const_ZIP_value, PHAR_FORMAT_ZIP);
657 	zend_string *const_ZIP_name = zend_string_init_interned("ZIP", sizeof("ZIP") - 1, 1);
658 	zend_declare_typed_class_constant(class_entry, const_ZIP_name, &const_ZIP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
659 	zend_string_release(const_ZIP_name);
660 
661 	zval const_COMPRESSED_value;
662 	ZVAL_LONG(&const_COMPRESSED_value, PHAR_ENT_COMPRESSION_MASK);
663 	zend_string *const_COMPRESSED_name = zend_string_init_interned("COMPRESSED", sizeof("COMPRESSED") - 1, 1);
664 	zend_declare_typed_class_constant(class_entry, const_COMPRESSED_name, &const_COMPRESSED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
665 	zend_string_release(const_COMPRESSED_name);
666 
667 	zval const_PHP_value;
668 	ZVAL_LONG(&const_PHP_value, PHAR_MIME_PHP);
669 	zend_string *const_PHP_name = zend_string_init_interned("PHP", sizeof("PHP") - 1, 1);
670 	zend_declare_typed_class_constant(class_entry, const_PHP_name, &const_PHP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
671 	zend_string_release(const_PHP_name);
672 
673 	zval const_PHPS_value;
674 	ZVAL_LONG(&const_PHPS_value, PHAR_MIME_PHPS);
675 	zend_string *const_PHPS_name = zend_string_init_interned("PHPS", sizeof("PHPS") - 1, 1);
676 	zend_declare_typed_class_constant(class_entry, const_PHPS_name, &const_PHPS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
677 	zend_string_release(const_PHPS_name);
678 
679 	zval const_MD5_value;
680 	ZVAL_LONG(&const_MD5_value, PHAR_SIG_MD5);
681 	zend_string *const_MD5_name = zend_string_init_interned("MD5", sizeof("MD5") - 1, 1);
682 	zend_declare_typed_class_constant(class_entry, const_MD5_name, &const_MD5_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
683 	zend_string_release(const_MD5_name);
684 
685 	zval const_OPENSSL_value;
686 	ZVAL_LONG(&const_OPENSSL_value, PHAR_SIG_OPENSSL);
687 	zend_string *const_OPENSSL_name = zend_string_init_interned("OPENSSL", sizeof("OPENSSL") - 1, 1);
688 	zend_declare_typed_class_constant(class_entry, const_OPENSSL_name, &const_OPENSSL_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
689 	zend_string_release(const_OPENSSL_name);
690 
691 	zval const_OPENSSL_SHA256_value;
692 	ZVAL_LONG(&const_OPENSSL_SHA256_value, PHAR_SIG_OPENSSL_SHA256);
693 	zend_string *const_OPENSSL_SHA256_name = zend_string_init_interned("OPENSSL_SHA256", sizeof("OPENSSL_SHA256") - 1, 1);
694 	zend_declare_typed_class_constant(class_entry, const_OPENSSL_SHA256_name, &const_OPENSSL_SHA256_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
695 	zend_string_release(const_OPENSSL_SHA256_name);
696 
697 	zval const_OPENSSL_SHA512_value;
698 	ZVAL_LONG(&const_OPENSSL_SHA512_value, PHAR_SIG_OPENSSL_SHA512);
699 	zend_string *const_OPENSSL_SHA512_name = zend_string_init_interned("OPENSSL_SHA512", sizeof("OPENSSL_SHA512") - 1, 1);
700 	zend_declare_typed_class_constant(class_entry, const_OPENSSL_SHA512_name, &const_OPENSSL_SHA512_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
701 	zend_string_release(const_OPENSSL_SHA512_name);
702 
703 	zval const_SHA1_value;
704 	ZVAL_LONG(&const_SHA1_value, PHAR_SIG_SHA1);
705 	zend_string *const_SHA1_name = zend_string_init_interned("SHA1", sizeof("SHA1") - 1, 1);
706 	zend_declare_typed_class_constant(class_entry, const_SHA1_name, &const_SHA1_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
707 	zend_string_release(const_SHA1_name);
708 
709 	zval const_SHA256_value;
710 	ZVAL_LONG(&const_SHA256_value, PHAR_SIG_SHA256);
711 	zend_string *const_SHA256_name = zend_string_init_interned("SHA256", sizeof("SHA256") - 1, 1);
712 	zend_declare_typed_class_constant(class_entry, const_SHA256_name, &const_SHA256_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
713 	zend_string_release(const_SHA256_name);
714 
715 	zval const_SHA512_value;
716 	ZVAL_LONG(&const_SHA512_value, PHAR_SIG_SHA512);
717 	zend_string *const_SHA512_name = zend_string_init_interned("SHA512", sizeof("SHA512") - 1, 1);
718 	zend_declare_typed_class_constant(class_entry, const_SHA512_name, &const_SHA512_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
719 	zend_string_release(const_SHA512_name);
720 
721 	return class_entry;
722 }
723 
register_class_PharData(zend_class_entry * class_entry_RecursiveDirectoryIterator,zend_class_entry * class_entry_Countable,zend_class_entry * class_entry_ArrayAccess)724 static zend_class_entry *register_class_PharData(zend_class_entry *class_entry_RecursiveDirectoryIterator, zend_class_entry *class_entry_Countable, zend_class_entry *class_entry_ArrayAccess)
725 {
726 	zend_class_entry ce, *class_entry;
727 
728 	INIT_CLASS_ENTRY(ce, "PharData", class_PharData_methods);
729 	class_entry = zend_register_internal_class_with_flags(&ce, class_entry_RecursiveDirectoryIterator, 0);
730 	zend_class_implements(class_entry, 2, class_entry_Countable, class_entry_ArrayAccess);
731 
732 	return class_entry;
733 }
734 
register_class_PharFileInfo(zend_class_entry * class_entry_SplFileInfo)735 static zend_class_entry *register_class_PharFileInfo(zend_class_entry *class_entry_SplFileInfo)
736 {
737 	zend_class_entry ce, *class_entry;
738 
739 	INIT_CLASS_ENTRY(ce, "PharFileInfo", class_PharFileInfo_methods);
740 	class_entry = zend_register_internal_class_with_flags(&ce, class_entry_SplFileInfo, 0);
741 
742 	return class_entry;
743 }
744