summaryrefslogtreecommitdiff
path: root/ext/dba/dba.stub.php
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-09-18 17:54:25 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-09-22 13:58:30 +0200
commit071ccee7f7fd9a3d3e2555be093f2e5fef40e507 (patch)
tree370b9578f6c2c8d36081f4d4eec6fa74b13ec035 /ext/dba/dba.stub.php
parentc6315f86c9aedffa90da0e2ee640e9087f35afc2 (diff)
downloadphp-git-071ccee7f7fd9a3d3e2555be093f2e5fef40e507.tar.gz
Add ext/dba stubs
Diffstat (limited to 'ext/dba/dba.stub.php')
-rw-r--r--ext/dba/dba.stub.php67
1 files changed, 67 insertions, 0 deletions
diff --git a/ext/dba/dba.stub.php b/ext/dba/dba.stub.php
new file mode 100644
index 0000000000..80b82259fc
--- /dev/null
+++ b/ext/dba/dba.stub.php
@@ -0,0 +1,67 @@
+<?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 {}