summaryrefslogtreecommitdiff
path: root/ext/sqlite3/sqlite3_arginfo.h
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-04-19 20:05:16 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-04-20 10:38:41 +0200
commit4815be44db6b7a73cabfa872dc17d7e1574e1930 (patch)
tree1acf5fda7957d12814f73654ef1e3b149ba39bc2 /ext/sqlite3/sqlite3_arginfo.h
parent8e9bc90004f09a0d67fdac393a8f3fca904be397 (diff)
downloadphp-git-4815be44db6b7a73cabfa872dc17d7e1574e1930.tar.gz
Generate function entries from stubs
Converts ext/pcntl, ext/simplexml, ext/snmp, ext/soap, ext/sqlite3. Closes GH-5421
Diffstat (limited to 'ext/sqlite3/sqlite3_arginfo.h')
-rw-r--r--ext/sqlite3/sqlite3_arginfo.h108
1 files changed, 108 insertions, 0 deletions
diff --git a/ext/sqlite3/sqlite3_arginfo.h b/ext/sqlite3/sqlite3_arginfo.h
index 1656a6c023..ab79449dda 100644
--- a/ext/sqlite3/sqlite3_arginfo.h
+++ b/ext/sqlite3/sqlite3_arginfo.h
@@ -49,6 +49,8 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SQLite3_prepare, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
ZEND_END_ARG_INFO()
+#define arginfo_class_SQLite3_exec arginfo_class_SQLite3_prepare
+
#define arginfo_class_SQLite3_query arginfo_class_SQLite3_prepare
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SQLite3_querySingle, 0, 0, 1)
@@ -145,3 +147,109 @@ ZEND_END_ARG_INFO()
#define arginfo_class_SQLite3Result_reset arginfo_class_SQLite3_close
#define arginfo_class_SQLite3Result_finalize arginfo_class_SQLite3_close
+
+
+ZEND_METHOD(SQLite3, open);
+ZEND_METHOD(SQLite3, close);
+ZEND_METHOD(SQLite3, version);
+ZEND_METHOD(SQLite3, lastInsertRowID);
+ZEND_METHOD(SQLite3, lastErrorCode);
+ZEND_METHOD(SQLite3, lastExtendedErrorCode);
+ZEND_METHOD(SQLite3, lastErrorMsg);
+ZEND_METHOD(SQLite3, changes);
+ZEND_METHOD(SQLite3, busyTimeout);
+#if !defined(SQLITE_OMIT_LOAD_EXTENSION)
+ZEND_METHOD(SQLite3, loadExtension);
+#endif
+#if SQLITE_VERSION_NUMBER >= 3006011
+ZEND_METHOD(SQLite3, backup);
+#endif
+ZEND_METHOD(SQLite3, escapeString);
+ZEND_METHOD(SQLite3, prepare);
+ZEND_METHOD(SQLite3, exec);
+ZEND_METHOD(SQLite3, query);
+ZEND_METHOD(SQLite3, querySingle);
+ZEND_METHOD(SQLite3, createFunction);
+ZEND_METHOD(SQLite3, createAggregate);
+ZEND_METHOD(SQLite3, createCollation);
+ZEND_METHOD(SQLite3, openBlob);
+ZEND_METHOD(SQLite3, enableExceptions);
+ZEND_METHOD(SQLite3, enableExtendedResultCodes);
+ZEND_METHOD(SQLite3, setAuthorizer);
+ZEND_METHOD(SQLite3Stmt, __construct);
+ZEND_METHOD(SQLite3Stmt, bindParam);
+ZEND_METHOD(SQLite3Stmt, bindValue);
+ZEND_METHOD(SQLite3Stmt, clear);
+ZEND_METHOD(SQLite3Stmt, close);
+ZEND_METHOD(SQLite3Stmt, execute);
+ZEND_METHOD(SQLite3Stmt, getSQL);
+ZEND_METHOD(SQLite3Stmt, paramCount);
+ZEND_METHOD(SQLite3Stmt, readOnly);
+ZEND_METHOD(SQLite3Stmt, reset);
+ZEND_METHOD(SQLite3Result, __construct);
+ZEND_METHOD(SQLite3Result, numColumns);
+ZEND_METHOD(SQLite3Result, columnName);
+ZEND_METHOD(SQLite3Result, columnType);
+ZEND_METHOD(SQLite3Result, fetchArray);
+ZEND_METHOD(SQLite3Result, reset);
+ZEND_METHOD(SQLite3Result, finalize);
+
+
+static const zend_function_entry class_SQLite3_methods[] = {
+ ZEND_MALIAS(SQLite3, __construct, open, arginfo_class_SQLite3___construct, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, open, arginfo_class_SQLite3_open, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, close, arginfo_class_SQLite3_close, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, version, arginfo_class_SQLite3_version, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ ZEND_ME(SQLite3, lastInsertRowID, arginfo_class_SQLite3_lastInsertRowID, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, lastErrorCode, arginfo_class_SQLite3_lastErrorCode, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, lastExtendedErrorCode, arginfo_class_SQLite3_lastExtendedErrorCode, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, lastErrorMsg, arginfo_class_SQLite3_lastErrorMsg, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, changes, arginfo_class_SQLite3_changes, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, busyTimeout, arginfo_class_SQLite3_busyTimeout, ZEND_ACC_PUBLIC)
+#if !defined(SQLITE_OMIT_LOAD_EXTENSION)
+ ZEND_ME(SQLite3, loadExtension, arginfo_class_SQLite3_loadExtension, ZEND_ACC_PUBLIC)
+#endif
+#if SQLITE_VERSION_NUMBER >= 3006011
+ ZEND_ME(SQLite3, backup, arginfo_class_SQLite3_backup, ZEND_ACC_PUBLIC)
+#endif
+ ZEND_ME(SQLite3, escapeString, arginfo_class_SQLite3_escapeString, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ ZEND_ME(SQLite3, prepare, arginfo_class_SQLite3_prepare, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, exec, arginfo_class_SQLite3_exec, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, query, arginfo_class_SQLite3_query, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, querySingle, arginfo_class_SQLite3_querySingle, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, createFunction, arginfo_class_SQLite3_createFunction, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, createAggregate, arginfo_class_SQLite3_createAggregate, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, createCollation, arginfo_class_SQLite3_createCollation, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, openBlob, arginfo_class_SQLite3_openBlob, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, enableExceptions, arginfo_class_SQLite3_enableExceptions, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, enableExtendedResultCodes, arginfo_class_SQLite3_enableExtendedResultCodes, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3, setAuthorizer, arginfo_class_SQLite3_setAuthorizer, ZEND_ACC_PUBLIC)
+ ZEND_FE_END
+};
+
+
+static const zend_function_entry class_SQLite3Stmt_methods[] = {
+ ZEND_ME(SQLite3Stmt, __construct, arginfo_class_SQLite3Stmt___construct, ZEND_ACC_PRIVATE)
+ ZEND_ME(SQLite3Stmt, bindParam, arginfo_class_SQLite3Stmt_bindParam, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Stmt, bindValue, arginfo_class_SQLite3Stmt_bindValue, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Stmt, clear, arginfo_class_SQLite3Stmt_clear, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Stmt, close, arginfo_class_SQLite3Stmt_close, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Stmt, execute, arginfo_class_SQLite3Stmt_execute, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Stmt, getSQL, arginfo_class_SQLite3Stmt_getSQL, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Stmt, paramCount, arginfo_class_SQLite3Stmt_paramCount, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Stmt, readOnly, arginfo_class_SQLite3Stmt_readOnly, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Stmt, reset, arginfo_class_SQLite3Stmt_reset, ZEND_ACC_PUBLIC)
+ ZEND_FE_END
+};
+
+
+static const zend_function_entry class_SQLite3Result_methods[] = {
+ ZEND_ME(SQLite3Result, __construct, arginfo_class_SQLite3Result___construct, ZEND_ACC_PRIVATE)
+ ZEND_ME(SQLite3Result, numColumns, arginfo_class_SQLite3Result_numColumns, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Result, columnName, arginfo_class_SQLite3Result_columnName, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Result, columnType, arginfo_class_SQLite3Result_columnType, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Result, fetchArray, arginfo_class_SQLite3Result_fetchArray, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Result, reset, arginfo_class_SQLite3Result_reset, ZEND_ACC_PUBLIC)
+ ZEND_ME(SQLite3Result, finalize, arginfo_class_SQLite3Result_finalize, ZEND_ACC_PUBLIC)
+ ZEND_FE_END
+};