xref: /PHP-8.3/ext/dba/dba.stub.php (revision 3c372901)
1<?php
2
3/** @generate-class-entries */
4
5#ifdef DBA_LMDB
6/** @var int */
7const DBA_LMDB_USE_SUB_DIR = 0;
8/**
9 * @var int
10 * @cvalue MDB_NOSUBDIR
11 */
12const DBA_LMDB_NO_SUB_DIR = UNKNOWN;
13#endif
14
15/** @return resource|false */
16function dba_popen(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0, ?int $flags = null) {}
17
18/** @return resource|false */
19function dba_open(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0, ?int $flags = null) {}
20
21/** @param resource $dba */
22function dba_close($dba): void {}
23
24/** @param resource $dba */
25function dba_exists(string|array $key, $dba): bool {}
26
27/**
28 * @param resource|int $dba overloaded legacy signature has params flipped
29 * @param resource|int $skip overloaded legacy signature has params flipped
30 */
31function dba_fetch(string|array $key, $dba, $skip = 0): string|false {}
32
33/** @return array<int, string>|false */
34function dba_key_split(string|false|null $key): array|false {}
35
36/** @param resource $dba */
37function dba_firstkey($dba): string|false {}
38
39/** @param resource $dba */
40function dba_nextkey($dba): string|false {}
41
42/** @param resource $dba */
43function dba_delete(string|array $key, $dba): bool {}
44
45/** @param resource $dba */
46function dba_insert(string|array $key, string $value, $dba): bool {}
47
48/** @param resource $dba */
49function dba_replace(string|array $key, string $value, $dba): bool {}
50
51/** @param resource $dba */
52function dba_optimize($dba): bool {}
53
54/** @param resource $dba */
55function dba_sync($dba): bool {}
56
57/**
58 * @return array<int|string, string>
59 * @refcount 1
60 */
61function dba_handlers(bool $full_info = false): array {}
62
63/** @return array<int, string> */
64function dba_list(): array {}
65