Skip to content

Commit a5cd853

Browse files
authored
Merge pull request #38 from phansys/db2_execute
Parameter 2 for `db2_execute()` contains prepared statement parameters, not options
2 parents 74eea5f + 5791c3b commit a5cd853

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ibm_db2.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function db2_prepare($connection, string $statement, array $options = []) {}
163163
/**
164164
* @param resource $stmt
165165
*/
166-
function db2_execute($stmt, array $options = []): bool {}
166+
function db2_execute($stmt, array $parameters = []): bool {}
167167

168168
#ifndef PASE
169169
/* XXX: Not documented and not supported on PASE. */

ibm_db2_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: 3cbc4e7e9448199bff07235c7abe69943e4d239d */
2+
* Stub hash: 507c5d7f43cee1a56677159e4dc1a388dc7e139d */
33

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

125125
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_execute, 0, 1, _IS_BOOL, 0)
126126
ZEND_ARG_INFO(0, stmt)
127-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
127+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, parameters, IS_ARRAY, 0, "[]")
128128
ZEND_END_ARG_INFO()
129129

130130
#if !defined(PASE)

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: 3cbc4e7e9448199bff07235c7abe69943e4d239d */
2+
* Stub hash: 507c5d7f43cee1a56677159e4dc1a388dc7e139d */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_INFO(0, database)
@@ -124,7 +124,7 @@ ZEND_END_ARG_INFO()
124124

125125
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_execute, 0, 0, 1)
126126
ZEND_ARG_INFO(0, stmt)
127-
ZEND_ARG_INFO(0, options)
127+
ZEND_ARG_INFO(0, parameters)
128128
ZEND_END_ARG_INFO()
129129

130130
#if !defined(PASE)

0 commit comments

Comments
 (0)