|
2 | 2 |
|
3 | 3 | namespace {
|
4 | 4 |
|
5 |
| - function brotli_compress(string $data, int $quality = BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = BROTLI_GENERIC): string|false {} |
6 |
| - |
7 |
| - function brotli_uncompress(string $data, int $length = 0): string|false {} |
8 |
| - |
9 | 5 | /**
|
10 |
| - * @return resource|false |
| 6 | + * @var int |
| 7 | + * @cvalue BROTLI_MODE_GENERIC |
11 | 8 | */
|
12 |
| - function brotli_compress_init(int $quality = BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = BROTLI_GENERIC) {} |
| 9 | + const BROTLI_GENERIC = UNKNOWN; |
13 | 10 |
|
14 | 11 | /**
|
15 |
| - * @param resource $context |
| 12 | + * @var int |
| 13 | + * @cvalue BROTLI_MODE_TEXT |
16 | 14 | */
|
17 |
| - function brotli_compress_add($context, string $data, int $mode = BROTLI_FLUSH): string|false {} |
| 15 | + const BROTLI_TEXT = UNKNOWN; |
18 | 16 |
|
19 | 17 | /**
|
20 |
| - * @return resource|false |
| 18 | + * @var int |
| 19 | + * @cvalue BROTLI_MODE_FONT |
21 | 20 | */
|
22 |
| - function brotli_uncompress_init() {} |
| 21 | + const BROTLI_FONT = UNKNOWN; |
23 | 22 |
|
24 | 23 | /**
|
25 |
| - * @param resource $context |
| 24 | + * @var int |
| 25 | + * @cvalue BROTLI_MIN_QUALITY |
26 | 26 | */
|
27 |
| - function brotli_uncompress_add($context, string $data, int $mode = BROTLI_FLUSH): string|false {} |
28 |
| -} |
| 27 | + const BROTLI_COMPRESS_LEVEL_MIN = UNKNOWN; |
29 | 28 |
|
30 |
| -namespace Brotli { |
31 |
| - |
32 |
| - function compress(string $data, int $quality = \BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = \BROTLI_GENERIC): string|false {} |
33 |
| - |
34 |
| - function ncompress(string $data, int $length = 0): string|false {} |
| 29 | + /** |
| 30 | + * @var int |
| 31 | + * @cvalue BROTLI_MAX_QUALITY |
| 32 | + */ |
| 33 | + const BROTLI_COMPRESS_LEVEL_MAX = UNKNOWN; |
35 | 34 |
|
36 | 35 | /**
|
37 |
| - * @return resource|false |
| 36 | + * @var int |
| 37 | + * @cvalue BROTLI_DEFAULT_QUALITY |
38 | 38 | */
|
39 |
| - function compress_init(int $quality = \BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = \BROTLI_GENERIC) {} |
| 39 | + const BROTLI_COMPRESS_LEVEL_DEFAULT = UNKNOWN; |
40 | 40 |
|
41 | 41 | /**
|
42 |
| - * @param resource $context |
| 42 | + * @var int |
| 43 | + * @cvalue BROTLI_OPERATION_PROCESS |
43 | 44 | */
|
44 |
| - function compress_add($context, string $data, int $mode = \BROTLI_FLUSH): string|false {} |
| 45 | + const BROTLI_PROCESS = UNKNOWN; |
45 | 46 |
|
46 | 47 | /**
|
47 |
| - * @return resource|false |
| 48 | + * @var int |
| 49 | + * @cvalue BROTLI_OPERATION_FLUSH |
48 | 50 | */
|
49 |
| - function uncompress_init() {} |
| 51 | + const BROTLI_FLUSH = UNKNOWN; |
50 | 52 |
|
51 | 53 | /**
|
52 |
| - * @param resource $context |
| 54 | + * @var int |
| 55 | + * @cvalue BROTLI_OPERATION_FINISH |
53 | 56 | */
|
54 |
| - function uncompress_add($context, string $data, int $mode = \BROTLI_FLUSH): string|false {} |
| 57 | + const BROTLI_FINISH = UNKNOWN; |
| 58 | + |
| 59 | + |
| 60 | + function brotli_compress(string $data, int $quality = BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = BROTLI_GENERIC): string|false {} |
| 61 | + |
| 62 | + function brotli_uncompress(string $data, int $length = 0): string|false {} |
| 63 | + |
| 64 | + function brotli_compress_init(int $quality = BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = BROTLI_GENERIC): Brotli\Compress\Context|false {} |
| 65 | + |
| 66 | + function brotli_compress_add(Brotli\Compress\Context $context, string $data, int $mode = BROTLI_FLUSH): string|false {} |
| 67 | + |
| 68 | + function brotli_uncompress_init(): Brotli\UnCompress\Context|false {} |
| 69 | + |
| 70 | + function brotli_uncompress_add(Brotli\UnCompress\Context $context, string $data, int $mode = BROTLI_FLUSH): string|false {} |
| 71 | +} |
| 72 | + |
| 73 | +namespace Brotli { |
| 74 | + |
| 75 | + function compress(string $data, int $quality = \BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = \BROTLI_GENERIC): string|false {} |
| 76 | + |
| 77 | + function uncompress(string $data, int $length = 0): string|false {} |
| 78 | + |
| 79 | + function compress_init(int $quality = \BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = \BROTLI_GENERIC): Compress\Context|false {} |
| 80 | + |
| 81 | + function compress_add(Compress\Context $context, string $data, int $mode = \BROTLI_FLUSH): string|false {} |
| 82 | + |
| 83 | + function uncompress_init(): UnCompress\Context|false {} |
| 84 | + |
| 85 | + function uncompress_add(UnCompress\Context $context, string $data, int $mode = \BROTLI_FLUSH): string|false {} |
| 86 | + |
| 87 | +} |
| 88 | + |
| 89 | +namespace Brotli\Compress { |
| 90 | + |
| 91 | + final class Context |
| 92 | + { |
| 93 | + } |
| 94 | + |
| 95 | +} |
| 96 | + |
| 97 | +namespace Brotli\UnCompress { |
| 98 | + |
| 99 | + final class Context |
| 100 | + { |
| 101 | + } |
| 102 | + |
55 | 103 | }
|
56 | 104 |
|
57 | 105 | #if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)
|
|
0 commit comments