1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 04:02:19 +02:00
Files
archived-php-src/ext/dba/dba.stub.php
Christoph M. Becker 071ccee7f7 Add ext/dba stubs
2019-09-22 13:58:30 +02:00

68 lines
1.4 KiB
PHP

<?php
/** @return resource|false */
function dba_popen($path, $mode, $handlername = UNKNOWN, ...$handler_parameters) {}
/** @return resource|false */
function dba_open($path, $mode, $handlername = UNKNOWN, ...$handler_parameters) {}
/** @param resource $handle */
function dba_close($handle): void {}
/**
* @param string|array $key
* @param resource $handle
*/
function dba_exists($key, $handle): bool {}
/**
* @param string|array $key
* @param int|resource $skip actually this parameter is optional, not $handle
* @param resource $handle
* @return string|false
*/
function dba_fetch($key, $skip, $handle = UNKOWN) {}
/** @return array|false */
function dba_key_split(string $key) {}
/**
* @param resource $handle
* @return string|false
*/
function dba_firstkey($handle) {}
/**
* @param resource $handle
* @return string|false
*/
function dba_nextkey($handle) {}
/**
* @param string|array $key
* @param resource $handle
*/
function dba_delete($key, $handle): bool {}
/**
* @param string|array $key
* @param resource $handle
*/
function dba_insert($key, string $value, $handle): bool {}
/**
* @param string|array $key
* @param resource $handle
*/
function dba_replace($key, string $value, $handle): bool {}
/** @param resource $handle */
function dba_optimize($handle): bool {}
/** @param resource $handle */
function dba_sync($handle): bool {}
function dba_handlers(bool $full_info = false): array {}
function dba_list(): array {}