Skip to content

Commit 1bb7bb4

Browse files
committed
chore: follow the changes to brotli.stub.php
1 parent faec3b3 commit 1bb7bb4

File tree

1 file changed

+74
-26
lines changed

1 file changed

+74
-26
lines changed

brotli.stub.php

Lines changed: 74 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,104 @@
22

33
namespace {
44

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-
95
/**
10-
* @return resource|false
6+
* @var int
7+
* @cvalue BROTLI_MODE_GENERIC
118
*/
12-
function brotli_compress_init(int $quality = BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = BROTLI_GENERIC) {}
9+
const BROTLI_GENERIC = UNKNOWN;
1310

1411
/**
15-
* @param resource $context
12+
* @var int
13+
* @cvalue BROTLI_MODE_TEXT
1614
*/
17-
function brotli_compress_add($context, string $data, int $mode = BROTLI_FLUSH): string|false {}
15+
const BROTLI_TEXT = UNKNOWN;
1816

1917
/**
20-
* @return resource|false
18+
* @var int
19+
* @cvalue BROTLI_MODE_FONT
2120
*/
22-
function brotli_uncompress_init() {}
21+
const BROTLI_FONT = UNKNOWN;
2322

2423
/**
25-
* @param resource $context
24+
* @var int
25+
* @cvalue BROTLI_MIN_QUALITY
2626
*/
27-
function brotli_uncompress_add($context, string $data, int $mode = BROTLI_FLUSH): string|false {}
28-
}
27+
const BROTLI_COMPRESS_LEVEL_MIN = UNKNOWN;
2928

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;
3534

3635
/**
37-
* @return resource|false
36+
* @var int
37+
* @cvalue BROTLI_DEFAULT_QUALITY
3838
*/
39-
function compress_init(int $quality = \BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = \BROTLI_GENERIC) {}
39+
const BROTLI_COMPRESS_LEVEL_DEFAULT = UNKNOWN;
4040

4141
/**
42-
* @param resource $context
42+
* @var int
43+
* @cvalue BROTLI_OPERATION_PROCESS
4344
*/
44-
function compress_add($context, string $data, int $mode = \BROTLI_FLUSH): string|false {}
45+
const BROTLI_PROCESS = UNKNOWN;
4546

4647
/**
47-
* @return resource|false
48+
* @var int
49+
* @cvalue BROTLI_OPERATION_FLUSH
4850
*/
49-
function uncompress_init() {}
51+
const BROTLI_FLUSH = UNKNOWN;
5052

5153
/**
52-
* @param resource $context
54+
* @var int
55+
* @cvalue BROTLI_OPERATION_FINISH
5356
*/
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+
55103
}
56104

57105
#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)

0 commit comments

Comments
 (0)