Skip to content

Commit 9a196c8

Browse files
committed
Update ibm_db2.stub.php and resulting headers
1 parent 61b806f commit 9a196c8

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

ibm_db2.stub.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Stub for arginfo in PHP 8
55
* XXX: How do we represent optionals without defaults?
66
* @generate-function-entries
7-
* @generate-legacy-arginfo
7+
* @generate-legacy-arginfo 70000
88
*/
99

1010
/**
@@ -27,7 +27,7 @@ function db2_pconnect(string $database, ?string $username, ?string $password, ar
2727
/**
2828
* @param resource $connection
2929
*/
30-
function db2_autocommit($connection, ?int $value = null): int|bool {}
30+
function db2_autocommit($connection, int $value = UNKNOWN): int|bool {}
3131

3232
/**
3333
* @param resource $connection
@@ -43,7 +43,7 @@ function db2_close($connection): bool {}
4343
/**
4444
* @param resource $connection
4545
*/
46-
function db2_pclose( $connection): bool {}
46+
function db2_pclose($connection): bool {}
4747
#endif
4848

4949
/**
@@ -121,7 +121,7 @@ function db2_special_columns($connection, ?string $qualifier, string $schema, st
121121
* @return resource
122122
* @alias db2_special_columns
123123
*/
124-
function db2_specialcolumns(resource $connection, ?string $qualifier, string $schema, string $table_name, int $scope) {}
124+
function db2_specialcolumns($connection, ?string $qualifier, string $schema, string $table_name, int $scope) {}
125125

126126
/**
127127
* @param resource $connection
@@ -175,22 +175,22 @@ function db2_execute_many($stmt, array $options = []): int|false {}
175175
#endif
176176

177177
/**
178-
* @param resource $stmt
178+
* @param resource|null $stmt
179179
*/
180180
function db2_stmt_errormsg($stmt = null): string {}
181181

182182
/**
183-
* @param resource $stmt
183+
* @param resource|null $stmt
184184
*/
185185
function db2_stmt_error($stmt = null): string {}
186186

187187
/**
188-
* @param resource $connection
188+
* @param resource|null $connection
189189
*/
190190
function db2_conn_errormsg($connection = null): string {}
191191

192192
/**
193-
* @param resource $connection
193+
* @param resource|null $connection
194194
*/
195195
function db2_conn_error($connection = null): string {}
196196

ibm_db2_arginfo.h

Lines changed: 3 additions & 9 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: 6178723de1b801eade1e4e7251805f53f100fee3 */
2+
* Stub hash: 3e863612a7a676e042e024f6778b791bd086abe5 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_TYPE_INFO(0, database, IS_STRING, 0)
@@ -16,7 +16,7 @@ ZEND_END_ARG_INFO()
1616

1717
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_db2_autocommit, 0, 1, MAY_BE_LONG|MAY_BE_BOOL)
1818
ZEND_ARG_INFO(0, connection)
19-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_LONG, 1, "null")
19+
ZEND_ARG_TYPE_INFO(0, value, IS_LONG, 0)
2020
ZEND_END_ARG_INFO()
2121

2222
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_bind_param, 0, 3, _IS_BOOL, 0)
@@ -87,13 +87,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_special_columns, 0, 0, 5)
8787
ZEND_ARG_TYPE_INFO(0, scope, IS_LONG, 0)
8888
ZEND_END_ARG_INFO()
8989

90-
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_specialcolumns, 0, 0, 5)
91-
ZEND_ARG_OBJ_INFO(0, connection, resource, 0)
92-
ZEND_ARG_TYPE_INFO(0, qualifier, IS_STRING, 1)
93-
ZEND_ARG_TYPE_INFO(0, schema, IS_STRING, 0)
94-
ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
95-
ZEND_ARG_TYPE_INFO(0, scope, IS_LONG, 0)
96-
ZEND_END_ARG_INFO()
90+
#define arginfo_db2_specialcolumns arginfo_db2_special_columns
9791

9892
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_statistics, 0, 0, 5)
9993
ZEND_ARG_INFO(0, connection)

ibm_db2_legacy_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 6178723de1b801eade1e4e7251805f53f100fee3 */
2+
* Stub hash: 3e863612a7a676e042e024f6778b791bd086abe5 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_INFO(0, database)

0 commit comments

Comments
 (0)