-
Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathzlib.stub.php
283 lines (244 loc) · 5.28 KB
/
zlib.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<?php
/** @generate-class-entries */
/**
* @var int
* @cvalue PHP_ZLIB_ENCODING_GZIP
*/
const FORCE_GZIP = UNKNOWN;
/**
* @var int
* @cvalue PHP_ZLIB_ENCODING_DEFLATE
*/
const FORCE_DEFLATE = UNKNOWN;
/**
* @var int
* @cvalue PHP_ZLIB_ENCODING_RAW
*/
const ZLIB_ENCODING_RAW = UNKNOWN;
/**
* @var int
* @cvalue PHP_ZLIB_ENCODING_GZIP
*/
const ZLIB_ENCODING_GZIP = UNKNOWN;
/**
* @var int
* @cvalue PHP_ZLIB_ENCODING_DEFLATE
*/
const ZLIB_ENCODING_DEFLATE = UNKNOWN;
/**
* @var int
* @cvalue Z_NO_FLUSH
*/
const ZLIB_NO_FLUSH = UNKNOWN;
/**
* @var int
* @cvalue Z_PARTIAL_FLUSH
*/
const ZLIB_PARTIAL_FLUSH = UNKNOWN;
/**
* @var int
* @cvalue Z_SYNC_FLUSH
*/
const ZLIB_SYNC_FLUSH = UNKNOWN;
/**
* @var int
* @cvalue Z_FULL_FLUSH
*/
const ZLIB_FULL_FLUSH = UNKNOWN;
/**
* @var int
* @cvalue Z_BLOCK
*/
const ZLIB_BLOCK = UNKNOWN;
/**
* @var int
* @cvalue Z_FINISH
*/
const ZLIB_FINISH = UNKNOWN;
/**
* @var int
* @cvalue Z_FILTERED
*/
const ZLIB_FILTERED = UNKNOWN;
/**
* @var int
* @cvalue Z_HUFFMAN_ONLY
*/
const ZLIB_HUFFMAN_ONLY = UNKNOWN;
/**
* @var int
* @cvalue Z_RLE
*/
const ZLIB_RLE = UNKNOWN;
/**
* @var int
* @cvalue Z_FIXED
*/
const ZLIB_FIXED = UNKNOWN;
/**
* @var int
* @cvalue Z_DEFAULT_STRATEGY
*/
const ZLIB_DEFAULT_STRATEGY = UNKNOWN;
/**
* @var string
* @cvalue ZLIB_VERSION
*/
const ZLIB_VERSION = UNKNOWN;
/**
* @var int
* @cvalue ZLIB_VERNUM
*/
const ZLIB_VERNUM = UNKNOWN;
/**
* @var int
* @cvalue Z_OK
*/
const ZLIB_OK = UNKNOWN;
/**
* @var int
* @cvalue Z_STREAM_END
*/
const ZLIB_STREAM_END = UNKNOWN;
/**
* @var int
* @cvalue Z_NEED_DICT
*/
const ZLIB_NEED_DICT = UNKNOWN;
/**
* @var int
* @cvalue Z_ERRNO
*/
const ZLIB_ERRNO = UNKNOWN;
/**
* @var int
* @cvalue Z_STREAM_ERROR
*/
const ZLIB_STREAM_ERROR = UNKNOWN;
/**
* @var int
* @cvalue Z_DATA_ERROR
*/
const ZLIB_DATA_ERROR = UNKNOWN;
/**
* @var int
* @cvalue Z_MEM_ERROR
*/
const ZLIB_MEM_ERROR = UNKNOWN;
/**
* @var int
* @cvalue Z_BUF_ERROR
*/
const ZLIB_BUF_ERROR = UNKNOWN;
/**
* @var int
* @cvalue Z_VERSION_ERROR
*/
const ZLIB_VERSION_ERROR = UNKNOWN;
/**
* @strict-properties
* @not-serializable
*/
final class InflateContext
{
}
/**
* @strict-properties
* @not-serializable
*/
final class DeflateContext
{
}
/** @refcount 1 */
function ob_gzhandler(string $data, int $flags): string|false {}
/** @refcount 1 */
function zlib_get_coding_type(): string|false {}
/**
* @return array<int, string>|false
* @refcount 1
*/
function gzfile(string $filename, int $use_include_path = 0): array|false {}
/**
* @return resource|false
* @refcount 1
*/
function gzopen(string $filename, string $mode, int $use_include_path = 0) {}
function readgzfile(string $filename, int $use_include_path = 0): int|false {}
/** @refcount 1 */
function zlib_encode(string $data, int $encoding, int $level = -1): string|false {}
/** @refcount 1 */
function zlib_decode(string $data, int $max_length = 0): string|false {}
/** @refcount 1 */
function gzdeflate(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_RAW): string|false {}
/** @refcount 1 */
function gzencode(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_GZIP): string|false {}
/** @refcount 1 */
function gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false {}
/** @refcount 1 */
function gzinflate(string $data, int $max_length = 0): string|false {}
/** @refcount 1 */
function gzdecode(string $data, int $max_length = 0): string|false {}
/** @refcount 1 */
function gzuncompress(string $data, int $max_length = 0): string|false {}
/**
* @param resource $stream
* @alias fwrite
*/
function gzwrite($stream, string $data, ?int $length = null): int|false {}
/**
* @param resource $stream
* @alias fwrite
* @undocumentable gzputs is an alias of gzwrite, but transitive aliases are not yet supported
*/
function gzputs($stream, string $data, ?int $length = null): int|false {}
/**
* @param resource $stream
* @alias rewind
*/
function gzrewind($stream): bool {}
/**
* @param resource $stream
* @alias fclose
*/
function gzclose($stream): bool {}
/**
* @param resource $stream
* @alias feof
*/
function gzeof($stream): bool {}
/**
* @param resource $stream
* @alias fgetc
*/
function gzgetc($stream): string|false {}
/**
* @param resource $stream
* @alias fpassthru
*/
function gzpassthru($stream): int {}
/**
* @param resource $stream
* @alias fseek
*/
function gzseek($stream, int $offset, int $whence = SEEK_SET): int {}
/**
* @param resource $stream
* @alias ftell
*/
function gztell($stream): int|false {}
/**
* @param resource $stream
* @alias fread
*/
function gzread($stream, int $length): string|false {}
/**
* @param resource $stream
* @alias fgets
*/
function gzgets($stream, ?int $length = null): string|false {}
function deflate_init(int $encoding, array|object $options = []): DeflateContext|false {}
function deflate_add(DeflateContext $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {}
function inflate_init(int $encoding, array|object $options = []): InflateContext|false {}
function inflate_add(InflateContext $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {}
function inflate_get_status(InflateContext $context): int {}
function inflate_get_read_len(InflateContext $context): int {}