Update ext/dba parameter names

Closes GH-6292.
This commit is contained in:
Nikita Popov 2020-10-07 15:14:41 +02:00
parent 5a447b086b
commit 74d757e3fd
2 changed files with 36 additions and 36 deletions

View File

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

View File

@ -1,28 +1,28 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 5b43c7cfcb48f3081d5585192eaaa5185df036f8 */
* Stub hash: 15c236854ed1d2e775486de5c8018adbd00506f9 */
ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_popen, 0, 0, 2)
ZEND_ARG_INFO(0, path)
ZEND_ARG_INFO(0, mode)
ZEND_ARG_INFO(0, handlername)
ZEND_ARG_VARIADIC_INFO(0, handler_parameters)
ZEND_ARG_INFO(0, handler)
ZEND_ARG_VARIADIC_INFO(0, handler_params)
ZEND_END_ARG_INFO()
#define arginfo_dba_open arginfo_dba_popen
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_close, 0, 1, IS_VOID, 0)
ZEND_ARG_INFO(0, handle)
ZEND_ARG_INFO(0, dba)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_exists, 0, 2, _IS_BOOL, 0)
ZEND_ARG_INFO(0, key)
ZEND_ARG_INFO(0, handle)
ZEND_ARG_INFO(0, dba)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_fetch, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, key)
ZEND_ARG_INFO(0, skip)
ZEND_ARG_INFO(0, handle)
ZEND_ARG_INFO(0, dba)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_key_split, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
@ -30,7 +30,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_key_split, 0, 1, MAY_BE_ARRA
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_firstkey, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, handle)
ZEND_ARG_INFO(0, dba)
ZEND_END_ARG_INFO()
#define arginfo_dba_nextkey arginfo_dba_firstkey
@ -40,13 +40,13 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_insert, 0, 3, _IS_BOOL, 0)
ZEND_ARG_INFO(0, key)
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
ZEND_ARG_INFO(0, handle)
ZEND_ARG_INFO(0, dba)
ZEND_END_ARG_INFO()
#define arginfo_dba_replace arginfo_dba_insert
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_optimize, 0, 1, _IS_BOOL, 0)
ZEND_ARG_INFO(0, handle)
ZEND_ARG_INFO(0, dba)
ZEND_END_ARG_INFO()
#define arginfo_dba_sync arginfo_dba_optimize