mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Add ext/dba symbols in a namespace blok
In preparation of the opaque object to resource conversion
This commit is contained in:
parent
6091395b59
commit
0dfd2a93ab
@ -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
2
ext/dba/dba_arginfo.h
generated
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user