xref: /PHP-8.0/ext/dba/dba.stub.php (revision 97dd0eb9)
1<?php
2
3/** @generate-function-entries */
4
5/**
6 * @param string $path
7 * @param string $mode
8 * @param string $handler
9 * @param string $handler_params
10 * @return resource|false
11 */
12function dba_popen($path, $mode, $handler = UNKNOWN, ...$handler_params) {}
13
14/**
15 * @param string $path
16 * @param string $mode
17 * @param string $handler
18 * @param string $handler_params
19 * @return resource|false
20 */
21function dba_open($path, $mode, $handler = UNKNOWN, ...$handler_params) {}
22
23/** @param resource $dba */
24function dba_close($dba): void {}
25
26/**
27 * @param string|array $key
28 * @param resource $dba
29 */
30function dba_exists($key, $dba): bool {}
31
32/**
33 * @param string|array $key
34 * @param int|resource $skip actually this parameter is optional, not $dba
35 * @param resource $dba
36 */
37function dba_fetch($key, $skip, $dba = UNKNOWN): string|false {}
38
39function dba_key_split(string|false|null $key): array|false {}
40
41/** @param resource $dba */
42function dba_firstkey($dba): string|false {}
43
44/** @param resource $dba */
45function dba_nextkey($dba): string|false {}
46
47/**
48 * @param string|array $key
49 * @param resource $dba
50 */
51function dba_delete($key, $dba): bool {}
52
53/**
54 * @param string|array $key
55 * @param resource $dba
56 */
57function dba_insert($key, string $value, $dba): bool {}
58
59/**
60 * @param string|array $key
61 * @param resource $dba
62 */
63function dba_replace($key, string $value, $dba): bool {}
64
65/** @param resource $dba */
66function dba_optimize($dba): bool {}
67
68/** @param resource $dba */
69function dba_sync($dba): bool {}
70
71function dba_handlers(bool $full_info = false): array {}
72
73function dba_list(): array {}
74