Skip to content

Commit 35a10fb

Browse files
committed
Fix UNKNOWN default values in ext/sqlite3
1 parent 60412c3 commit 35a10fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/sqlite3/sqlite3.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ class SQLite3Stmt
8686
private function __construct(SQLite3 $sqlite3, string $sql) {}
8787

8888
/** @return bool */
89-
public function bindParam($param_number, &$param, int $type = UNKNOWN) {}
89+
public function bindParam($param_number, &$param, int $type = SQLITE3_TEXT) {}
9090

9191
/** @return bool */
92-
public function bindValue($param_number, $param, int $type = UNKNOWN) {}
92+
public function bindValue($param_number, $param, int $type = SQLITE3_TEXT) {}
9393

9494
/** @return bool */
9595
public function clear() {}

ext/sqlite3/sqlite3_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ ZEND_END_ARG_INFO()
105105
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SQLite3Stmt_bindParam, 0, 0, 2)
106106
ZEND_ARG_INFO(0, param_number)
107107
ZEND_ARG_INFO(1, param)
108-
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
108+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "SQLITE3_TEXT")
109109
ZEND_END_ARG_INFO()
110110

111111
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SQLite3Stmt_bindValue, 0, 0, 2)
112112
ZEND_ARG_INFO(0, param_number)
113113
ZEND_ARG_INFO(0, param)
114-
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
114+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "SQLITE3_TEXT")
115115
ZEND_END_ARG_INFO()
116116

117117
#define arginfo_class_SQLite3Stmt_clear arginfo_class_SQLite3_close

0 commit comments

Comments
 (0)