Skip to content

Commit 19487f6

Browse files
committed
This isn't nullable, but actually set to what's used with only argc = 3
1 parent 81b2fe5 commit 19487f6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ibm_db2.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function db2_autocommit($connection, ?int $value = null): int|bool {}
3232
/**
3333
* @param resource $connection
3434
*/
35-
function db2_bind_param($connection, int $parameter_number, string $variable_name, ?int $parameter_type, int $data_type = 0, int $precision = -1, int $scale = 0): bool {}
35+
function db2_bind_param($connection, int $parameter_number, string $variable_name, int $parameter_type = DB2_PARAM_IN, int $data_type = 0, int $precision = -1, int $scale = 0): bool {}
3636

3737
/**
3838
* @param resource $connection

ibm_db2_arginfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 63152809ed3cbc1758bf8b74972e4a2faa92185f */
2+
* Stub hash: 6178723de1b801eade1e4e7251805f53f100fee3 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_TYPE_INFO(0, database, IS_STRING, 0)
@@ -19,11 +19,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_db2_autocommit, 0, 1, MAY_BE_LON
1919
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_LONG, 1, "null")
2020
ZEND_END_ARG_INFO()
2121

22-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_bind_param, 0, 4, _IS_BOOL, 0)
22+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_bind_param, 0, 3, _IS_BOOL, 0)
2323
ZEND_ARG_INFO(0, connection)
2424
ZEND_ARG_TYPE_INFO(0, parameter_number, IS_LONG, 0)
2525
ZEND_ARG_TYPE_INFO(0, variable_name, IS_STRING, 0)
26-
ZEND_ARG_TYPE_INFO(0, parameter_type, IS_LONG, 1)
26+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, parameter_type, IS_LONG, 0, "DB2_PARAM_IN")
2727
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, data_type, IS_LONG, 0, "0")
2828
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, precision, IS_LONG, 0, "-1")
2929
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 0, "0")

ibm_db2_legacy_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 63152809ed3cbc1758bf8b74972e4a2faa92185f */
2+
* Stub hash: 6178723de1b801eade1e4e7251805f53f100fee3 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_INFO(0, database)
@@ -19,7 +19,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_autocommit, 0, 0, 1)
1919
ZEND_ARG_INFO(0, value)
2020
ZEND_END_ARG_INFO()
2121

22-
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_bind_param, 0, 0, 4)
22+
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_bind_param, 0, 0, 3)
2323
ZEND_ARG_INFO(0, connection)
2424
ZEND_ARG_INFO(0, parameter_number)
2525
ZEND_ARG_INFO(0, variable_name)

0 commit comments

Comments
 (0)