Skip to content

Update ibm_db2.stub.php #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions ibm_db2.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Stub for arginfo in PHP 8
* XXX: How do we represent optionals without defaults?
* @generate-function-entries
* @generate-legacy-arginfo
* @generate-legacy-arginfo 70000
*/

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

/**
* @param resource $connection
Expand All @@ -43,7 +43,7 @@ function db2_close($connection): bool {}
/**
* @param resource $connection
*/
function db2_pclose( $connection): bool {}
function db2_pclose($connection): bool {}
#endif

/**
Expand Down Expand Up @@ -121,7 +121,7 @@ function db2_special_columns($connection, ?string $qualifier, string $schema, st
* @return resource
* @alias db2_special_columns
*/
function db2_specialcolumns(resource $connection, ?string $qualifier, string $schema, string $table_name, int $scope) {}
function db2_specialcolumns($connection, ?string $qualifier, string $schema, string $table_name, int $scope) {}

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

/**
* @param resource $stmt
* @param resource|null $stmt
*/
function db2_stmt_errormsg($stmt = null): string {}

/**
* @param resource $stmt
* @param resource|null $stmt
*/
function db2_stmt_error($stmt = null): string {}

/**
* @param resource $connection
* @param resource|null $connection
*/
function db2_conn_errormsg($connection = null): string {}

/**
* @param resource $connection
* @param resource|null $connection
*/
function db2_conn_error($connection = null): string {}

Expand Down
12 changes: 3 additions & 9 deletions ibm_db2_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 6178723de1b801eade1e4e7251805f53f100fee3 */
* Stub hash: 3e863612a7a676e042e024f6778b791bd086abe5 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
ZEND_ARG_TYPE_INFO(0, database, IS_STRING, 0)
Expand All @@ -16,7 +16,7 @@ ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_db2_autocommit, 0, 1, MAY_BE_LONG|MAY_BE_BOOL)
ZEND_ARG_INFO(0, connection)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_LONG, 1, "null")
ZEND_ARG_TYPE_INFO(0, value, IS_LONG, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_bind_param, 0, 3, _IS_BOOL, 0)
Expand Down Expand Up @@ -87,13 +87,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_special_columns, 0, 0, 5)
ZEND_ARG_TYPE_INFO(0, scope, IS_LONG, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_specialcolumns, 0, 0, 5)
ZEND_ARG_OBJ_INFO(0, connection, resource, 0)
ZEND_ARG_TYPE_INFO(0, qualifier, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, schema, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, scope, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_db2_specialcolumns arginfo_db2_special_columns

ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_statistics, 0, 0, 5)
ZEND_ARG_INFO(0, connection)
Expand Down
2 changes: 1 addition & 1 deletion ibm_db2_legacy_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 6178723de1b801eade1e4e7251805f53f100fee3 */
* Stub hash: 3e863612a7a676e042e024f6778b791bd086abe5 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
ZEND_ARG_INFO(0, database)
Expand Down