xref: /PHP-8.1/ext/dba/dba.stub.php (revision d02b9b95)
1<?php
2
3/** @generate-class-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
39/** @return array<int, string>|false */
40function dba_key_split(string|false|null $key): array|false {}
41
42/** @param resource $dba */
43function dba_firstkey($dba): string|false {}
44
45/** @param resource $dba */
46function dba_nextkey($dba): string|false {}
47
48/**
49 * @param string|array $key
50 * @param resource $dba
51 */
52function dba_delete($key, $dba): bool {}
53
54/**
55 * @param string|array $key
56 * @param resource $dba
57 */
58function dba_insert($key, string $value, $dba): bool {}
59
60/**
61 * @param string|array $key
62 * @param resource $dba
63 */
64function dba_replace($key, string $value, $dba): bool {}
65
66/** @param resource $dba */
67function dba_optimize($dba): bool {}
68
69/** @param resource $dba */
70function dba_sync($dba): bool {}
71
72/**
73 * @return array<int|string, string>
74 * @refcount 1
75 */
76function dba_handlers(bool $full_info = false): array {}
77
78/** @return array<int, string> */
79function dba_list(): array {}
80