summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/sqlite_driver.stub.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-07-21 12:33:25 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-07-21 12:49:36 +0200
commit1afcced1f0dfc8afd12bef4fb2cb08048edfd8af (patch)
tree08f01a71d30e64a25089ff6fff99b74fa1ba0c92 /ext/pdo_sqlite/sqlite_driver.stub.php
parent047474c3b4dddd997ee3b8f66d0c4f091a40c02c (diff)
downloadphp-git-1afcced1f0dfc8afd12bef4fb2cb08048edfd8af.tar.gz
Add stubs for PDO SQLite extension methods
Putting these under a dummy PDO_SQLite_Ext class.
Diffstat (limited to 'ext/pdo_sqlite/sqlite_driver.stub.php')
-rw-r--r--ext/pdo_sqlite/sqlite_driver.stub.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/sqlite_driver.stub.php b/ext/pdo_sqlite/sqlite_driver.stub.php
new file mode 100644
index 0000000000..eafd3c0c48
--- /dev/null
+++ b/ext/pdo_sqlite/sqlite_driver.stub.php
@@ -0,0 +1,15 @@
+<?php
+
+/** @generate-function-entries */
+
+// These are extension methods for PDO. This is not a real class.
+class PDO_SQLite_Ext {
+ /** @return bool */
+ public function sqliteCreateFunction(string $function_name, callable $callback, int $num_args = -1, int $flags = 0) {}
+
+ /** @return bool */
+ public function sqliteCreateAggregate(string $function_name, callable $step_func, callable $finalize_func, int $num_args = -1) {}
+
+ /** @return bool */
+ public function sqliteCreateCollation(string $name, callable $callback) {}
+}