Add ext/dba symbols in a namespace blok

In preparation of the opaque object to resource conversion
This commit is contained in:
Máté Kocsis 2024-05-08 23:44:23 +02:00
parent 6091395b59
commit 0dfd2a93ab
No known key found for this signature in database
GPG Key ID: FD055E41728BF310
2 changed files with 48 additions and 46 deletions

View File

@ -2,63 +2,65 @@
/** @generate-class-entries */
#ifdef DBA_LMDB
/** @var int */
const DBA_LMDB_USE_SUB_DIR = 0;
/**
* @var int
* @cvalue MDB_NOSUBDIR
*/
const DBA_LMDB_NO_SUB_DIR = UNKNOWN;
#endif
namespace {
#ifdef DBA_LMDB
/** @var int */
const DBA_LMDB_USE_SUB_DIR = 0;
/**
* @var int
* @cvalue MDB_NOSUBDIR
*/
const DBA_LMDB_NO_SUB_DIR = UNKNOWN;
#endif
/** @return resource|false */
function dba_popen(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0, ?int $flags = null) {}
/** @return resource|false */
function dba_popen(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0, ?int $flags = null) {}
/** @return resource|false */
function dba_open(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0, ?int $flags = null) {}
/** @return resource|false */
function dba_open(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0, ?int $flags = null) {}
/** @param resource $dba */
function dba_close($dba): void {}
/** @param resource $dba */
function dba_close($dba): void {}
/** @param resource $dba */
function dba_exists(string|array $key, $dba): bool {}
/** @param resource $dba */
function dba_exists(string|array $key, $dba): bool {}
/**
* @param resource|int $dba overloaded legacy signature has params flipped
* @param resource|int $skip overloaded legacy signature has params flipped
*/
function dba_fetch(string|array $key, $dba, $skip = 0): string|false {}
/**
* @param resource|int $dba overloaded legacy signature has params flipped
* @param resource|int $skip overloaded legacy signature has params flipped
*/
function dba_fetch(string|array $key, $dba, $skip = 0): string|false {}
/** @return array<int, string>|false */
function dba_key_split(string|false|null $key): array|false {}
/** @return array<int, string>|false */
function dba_key_split(string|false|null $key): array|false {}
/** @param resource $dba */
function dba_firstkey($dba): string|false {}
/** @param resource $dba */
function dba_firstkey($dba): string|false {}
/** @param resource $dba */
function dba_nextkey($dba): string|false {}
/** @param resource $dba */
function dba_nextkey($dba): string|false {}
/** @param resource $dba */
function dba_delete(string|array $key, $dba): bool {}
/** @param resource $dba */
function dba_delete(string|array $key, $dba): bool {}
/** @param resource $dba */
function dba_insert(string|array $key, string $value, $dba): bool {}
/** @param resource $dba */
function dba_insert(string|array $key, string $value, $dba): bool {}
/** @param resource $dba */
function dba_replace(string|array $key, string $value, $dba): bool {}
/** @param resource $dba */
function dba_replace(string|array $key, string $value, $dba): bool {}
/** @param resource $dba */
function dba_optimize($dba): bool {}
/** @param resource $dba */
function dba_optimize($dba): bool {}
/** @param resource $dba */
function dba_sync($dba): bool {}
/** @param resource $dba */
function dba_sync($dba): bool {}
/**
* @return array<int|string, string>
* @refcount 1
*/
function dba_handlers(bool $full_info = false): array {}
/**
* @return array<int|string, string>
* @refcount 1
*/
function dba_handlers(bool $full_info = false): array {}
/** @return array<int, string> */
function dba_list(): array {}
/** @return array<int, string> */
function dba_list(): array {}
}

2
ext/dba/dba_arginfo.h generated
View File

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 1a02eaf9da45edb40720620e3beef43fd19dd520 */
* Stub hash: 13541466ecb002ce852f3708deb420029acd0b09 */
ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_popen, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)