xref: /PHP-8.1/ext/bz2/bz2.stub.php (revision d02b9b95)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @param string|resource $file
7 * @return resource|false
8 */
9 function bzopen($file, string $mode) {}
10
11/** @param resource $bz */
12function bzread($bz, int $length = 1024): string|false {}
13
14/**
15 * @param resource $bz
16 * @implementation-alias fwrite
17 * @no-verify Uses different parameter name
18 */
19function bzwrite($bz, string $data, ?int $length = null): int|false {}
20
21/**
22 * @param resource $bz
23 * @implementation-alias fflush
24 * @no-verify Uses different parameter name
25 */
26function bzflush($bz): bool {}
27
28/**
29 * @param resource $bz
30 * @implementation-alias fclose
31 * @no-verify Uses different parameter name
32 */
33function bzclose($bz): bool {}
34
35/** @param resource $bz */
36function bzerrno($bz): int {}
37
38/** @param resource $bz */
39function bzerrstr($bz): string {}
40
41/**
42 * @param resource $bz
43 * @return array<string, int|string>
44 * @refcount 1
45 */
46function bzerror($bz): array {}
47
48function bzcompress(string $data, int $block_size = 4, int $work_factor = 0): string|int {}
49
50function bzdecompress(string $data, bool $use_less_memory = false): string|int|false {}
51