Mark a bunch of builtins as reactive
[hiphop-php.git] / hphp / hack / hhi / stdlib / builtins_zlib.hhi
blob5b7d108c72307a09bd45b1b53280bbb72eda2525
1 <?hh // decl /* -*- php -*- */
2 /**
3  * Copyright (c) 2014, Facebook, Inc.
4  * All rights reserved.
5  *
6  * This source code is licensed under the MIT license found in the
7  * LICENSE file in the "hack" directory of this source tree.
8  *
9  */
11 const int ZLIB_ENCODING_RAW = 0;
12 const int ZLIB_ENCODING_GZIP = 0;
13 const int ZLIB_ENCODING_DEFLATE = 0;
14 const int ZLIB_ENCODING_ANY = 0;
16 const int FORCE_GZIP = 0;
17 const int FORCE_DEFLATE = 0;
19 <<__PHPStdLib>>
20 function gzclose($zp);
21 <<__PHPStdLib, __Rx>>
22 function gzcompress(string $data, int $level = -1): mixed;
23 <<__PHPStdLib, __Rx>>
24 function gzdecode(string $data, int $length = PHP_INT_MAX): mixed;
25 <<__PHPStdLib, __Rx>>
26 function gzdeflate(string $data, int $level = -1): mixed;
27 <<__PHPStdLib, __Rx>>
28 function gzencode(string $data, int $level = -1): mixed;
29 <<__PHPStdLib>>
30 function gzeof($zp);
31 <<__PHPStdLib>>
32 function gzfile($filename, $use_include_path = false);
33 <<__PHPStdLib>>
34 function gzgetc($zp);
35 <<__PHPStdLib>>
36 function gzgets($zp, $length = 1024);
37 <<__PHPStdLib>>
38 function gzgetss($zp, $length = 0, $allowable_tags = null);
39 <<__PHPStdLib, __Rx>>
40 function gzinflate(string $data, int $length = 0): mixed;
41 <<__PHPStdLib>>
42 function gzopen($filename, $mode, $use_include_path = false);
43 <<__PHPStdLib>>
44 function gzpassthru($zp);
45 <<__PHPStdLib>>
46 function gzputs($zp, $str, $length = 0);
47 <<__PHPStdLib>>
48 function gzread($zp, $length = 0);
49 <<__PHPStdLib>>
50 function gzrewind($zp);
51 <<__PHPStdLib>>
52 function gzseek($zp, $offset, $whence = SEEK_SET);
53 <<__PHPStdLib>>
54 function gztell($zp);
55 <<__PHPStdLib>>
56 function gzuncompress(string $data, int $length = 0): mixed;
57 <<__PHPStdLib>>
58 function gzwrite($zp, $str, $length = 0);
59 <<__PHPStdLib, __Rx>>
60 function nzcompress($uncompressed);
61 <<__PHPStdLib, __Rx>>
62 function nzuncompress($compressed);
63 <<__PHPStdLib>>
64 function qlzcompress($data, $level = 1);
65 <<__PHPStdLib>>
66 function qlzuncompress(string $data, int $level = 1): mixed;
67 <<__PHPStdLib>>
68 function readgzfile($filename, $use_include_path = false);
69 <<__PHPStdLib, __Rx>>
70 function zlib_decode(string $data, int $max_len = 0): mixed; // string or false
71 <<__PHPStdLib, __Rx>>
72 function zlib_encode(string $data, int $encoding, int $level = -1): mixed;
73 <<__PHPStdLib>>
74 function zlib_get_coding_type();