Skip to content

Commit 1c22997

Browse files
committed
Use camel case for parameter names in ibm_db2.stub.php
1 parent 0af91df commit 1c22997

File tree

3 files changed

+61
-61
lines changed

3 files changed

+61
-61
lines changed

ibm_db2.stub.php

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function db2_autocommit($connection, int $value = UNKNOWN): int|bool {}
3232
/**
3333
* @param resource $connection
3434
*/
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 {}
35+
function db2_bind_param($connection, int $parameterNumber, string $variableName, int $parameterType = DB2_PARAM_IN, int $dataType = 0, int $precision = -1, int $scale = 0): bool {}
3636

3737
/**
3838
* @param resource $connection
@@ -50,46 +50,46 @@ function db2_pclose($connection): bool {}
5050
* @param resource $connection
5151
* @return resource
5252
*/
53-
function db2_column_privileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null, ?string $column_name = null) {}
53+
function db2_column_privileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $tableName = null, ?string $columnName = null) {}
5454

5555
/**
5656
* @param resource $connection
5757
* @return resource
5858
* @alias db2_column_privileges
5959
*/
60-
function db2_columnprivileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null, ?string $column_name = null) {}
60+
function db2_columnprivileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $tableName = null, ?string $columnName = null) {}
6161

6262
/**
6363
* @param resource $connection
6464
* @return resource
6565
*/
66-
function db2_columns($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null, ?string $column_name = null) {}
66+
function db2_columns($connection, ?string $qualifier = null, ?string $schema = null, ?string $tableName = null, ?string $columnName = null) {}
6767

6868
/**
6969
* @param resource $connection
7070
* @return resource
7171
*/
72-
function db2_foreign_keys($connection, ?string $qualifier, ?string $schema, string $table_name) {}
72+
function db2_foreign_keys($connection, ?string $qualifier, ?string $schema, string $tableName) {}
7373

7474
/**
7575
* @param resource $connection
7676
* @return resource
7777
* @alias db2_foreign_keys
7878
*/
79-
function db2_foreignkeys($connection, ?string $qualifier, ?string $schema, string $table_name) {}
79+
function db2_foreignkeys($connection, ?string $qualifier, ?string $schema, string $tableName) {}
8080

8181
/**
8282
* @param resource $connection
8383
* @return resource
8484
*/
85-
function db2_primary_keys($connection, ?string $qualifier, ?string $schema, string $table_name) {}
85+
function db2_primary_keys($connection, ?string $qualifier, ?string $schema, string $tableName) {}
8686

8787
/**
8888
* @param resource $connection
8989
* @return resource
9090
* @alias db2_primary_keys
9191
*/
92-
function db2_primarykeys($connection, ?string $qualifier, ?string $schema, string $table_name) {}
92+
function db2_primarykeys($connection, ?string $qualifier, ?string $schema, string $tableName) {}
9393

9494
/**
9595
* @param resource $connection
@@ -114,39 +114,39 @@ function db2_procedures($connection, ?string $qualifier, string $schema, string
114114
* @param resource $connection
115115
* @return resource
116116
*/
117-
function db2_special_columns($connection, ?string $qualifier, string $schema, string $table_name, int $scope) {}
117+
function db2_special_columns($connection, ?string $qualifier, string $schema, string $tableName, int $scope) {}
118118

119119
/**
120120
* @param resource $connection
121121
* @return resource
122122
* @alias db2_special_columns
123123
*/
124-
function db2_specialcolumns($connection, ?string $qualifier, string $schema, string $table_name, int $scope) {}
124+
function db2_specialcolumns($connection, ?string $qualifier, string $schema, string $tableName, int $scope) {}
125125

126126
/**
127127
* @param resource $connection
128128
* @return resource
129129
*/
130-
function db2_statistics($connection, ?string $qualifier, ?string $schema, string $table_name, bool|int $unique) {}
130+
function db2_statistics($connection, ?string $qualifier, ?string $schema, string $tableName, bool|int $unique) {}
131131

132132
/**
133133
* @param resource $connection
134134
* @return resource
135135
*/
136-
function db2_table_privileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null) {}
136+
function db2_table_privileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $tableName = null) {}
137137

138138
/**
139139
* @param resource $connection
140140
* @return resource
141141
* @alias db2_table_privileges
142142
*/
143-
function db2_tableprivileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null) {}
143+
function db2_tableprivileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $tableName = null) {}
144144

145145
/**
146146
* @param resource $connection
147147
* @return resource
148148
*/
149-
function db2_tables($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null, ?string $table_type = null) {}
149+
function db2_tables($connection, ?string $qualifier = null, ?string $schema = null, ?string $tableName = null, ?string $tableType = null) {}
150150

151151
/**
152152
* @param resource $connection
@@ -177,22 +177,22 @@ function db2_execute_many($stmt, array $options = []): int|false {}
177177
/**
178178
* @param resource|null $stmt
179179
*/
180-
function db2_stmt_errormsg($stmt = null): string {}
180+
function db2_stmt_errormsg($stmt = UNKNOWN): string {}
181181

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

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

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

197197
/**
198198
* @param resource $stmt
@@ -268,27 +268,27 @@ function db2_result($stmt, int|string $column): mixed|null {}
268268
/**
269269
* @param resource $stmt
270270
*/
271-
function db2_fetch_row($stmt, ?int $row_number = null): bool {}
271+
function db2_fetch_row($stmt, ?int $rowNumber = null): bool {}
272272

273273
/**
274274
* @param resource $stmt
275275
*/
276-
function db2_fetch_assoc($stmt, ?int $row_number = null): array|false {}
276+
function db2_fetch_assoc($stmt, ?int $rowNumber = null): array|false {}
277277

278278
/**
279279
* @param resource $stmt
280280
*/
281-
function db2_fetch_array($stmt, ?int $row_number = null): array|false {}
281+
function db2_fetch_array($stmt, ?int $rowNumber = null): array|false {}
282282

283283
/**
284284
* @param resource $stmt
285285
*/
286-
function db2_fetch_both($stmt, ?int $row_number = null): array|false {}
286+
function db2_fetch_both($stmt, ?int $rowNumber = null): array|false {}
287287

288288
/**
289289
* @param resource $stmt
290290
*/
291-
function db2_fetch_object($stmt, ?int $row_number = null): object|false {}
291+
function db2_fetch_object($stmt, ?int $rowNumber = null): object|false {}
292292

293293
/**
294294
* @param resource $stmt
@@ -316,12 +316,12 @@ function db2_client_info($connection): object|false {}
316316
*/
317317
function db2_server_info($connection): object|false {}
318318

319-
function db2_escape_string(string $string_literal): string {}
319+
function db2_escape_string(string $stringLiteral): string {}
320320

321321
/**
322322
* @param resource $stmt
323323
*/
324-
function db2_lob_read($stmt, int $colnum, int $length): string|false {}
324+
function db2_lob_read($stmt, int $columnNumber, int $length): string|false {}
325325

326326
/**
327327
* @param resource $resource

ibm_db2_arginfo.h

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

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_TYPE_INFO(0, database, IS_STRING, 0)
@@ -21,10 +21,10 @@ ZEND_END_ARG_INFO()
2121

2222
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_bind_param, 0, 3, _IS_BOOL, 0)
2323
ZEND_ARG_INFO(0, connection)
24-
ZEND_ARG_TYPE_INFO(0, parameter_number, IS_LONG, 0)
25-
ZEND_ARG_TYPE_INFO(0, variable_name, IS_STRING, 0)
26-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, parameter_type, IS_LONG, 0, "DB2_PARAM_IN")
27-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, data_type, IS_LONG, 0, "0")
24+
ZEND_ARG_TYPE_INFO(0, parameterNumber, IS_LONG, 0)
25+
ZEND_ARG_TYPE_INFO(0, variableName, IS_STRING, 0)
26+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, parameterType, IS_LONG, 0, "DB2_PARAM_IN")
27+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, dataType, 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")
3030
ZEND_END_ARG_INFO()
@@ -41,8 +41,8 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_column_privileges, 0, 0, 1)
4141
ZEND_ARG_INFO(0, connection)
4242
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, qualifier, IS_STRING, 1, "null")
4343
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, schema, IS_STRING, 1, "null")
44-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, table_name, IS_STRING, 1, "null")
45-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, column_name, IS_STRING, 1, "null")
44+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, tableName, IS_STRING, 1, "null")
45+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, columnName, IS_STRING, 1, "null")
4646
ZEND_END_ARG_INFO()
4747

4848
#define arginfo_db2_columnprivileges arginfo_db2_column_privileges
@@ -53,7 +53,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_foreign_keys, 0, 0, 4)
5353
ZEND_ARG_INFO(0, connection)
5454
ZEND_ARG_TYPE_INFO(0, qualifier, IS_STRING, 1)
5555
ZEND_ARG_TYPE_INFO(0, schema, IS_STRING, 1)
56-
ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
56+
ZEND_ARG_TYPE_INFO(0, tableName, IS_STRING, 0)
5757
ZEND_END_ARG_INFO()
5858

5959
#define arginfo_db2_foreignkeys arginfo_db2_foreign_keys
@@ -83,7 +83,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_special_columns, 0, 0, 5)
8383
ZEND_ARG_INFO(0, connection)
8484
ZEND_ARG_TYPE_INFO(0, qualifier, IS_STRING, 1)
8585
ZEND_ARG_TYPE_INFO(0, schema, IS_STRING, 0)
86-
ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
86+
ZEND_ARG_TYPE_INFO(0, tableName, IS_STRING, 0)
8787
ZEND_ARG_TYPE_INFO(0, scope, IS_LONG, 0)
8888
ZEND_END_ARG_INFO()
8989

@@ -93,15 +93,15 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_statistics, 0, 0, 5)
9393
ZEND_ARG_INFO(0, connection)
9494
ZEND_ARG_TYPE_INFO(0, qualifier, IS_STRING, 1)
9595
ZEND_ARG_TYPE_INFO(0, schema, IS_STRING, 1)
96-
ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
96+
ZEND_ARG_TYPE_INFO(0, tableName, IS_STRING, 0)
9797
ZEND_ARG_TYPE_MASK(0, unique, MAY_BE_BOOL|MAY_BE_LONG, NULL)
9898
ZEND_END_ARG_INFO()
9999

100100
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_table_privileges, 0, 0, 1)
101101
ZEND_ARG_INFO(0, connection)
102102
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, qualifier, IS_STRING, 1, "null")
103103
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, schema, IS_STRING, 1, "null")
104-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, table_name, IS_STRING, 1, "null")
104+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, tableName, IS_STRING, 1, "null")
105105
ZEND_END_ARG_INFO()
106106

107107
#define arginfo_db2_tableprivileges arginfo_db2_table_privileges
@@ -110,8 +110,8 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_tables, 0, 0, 1)
110110
ZEND_ARG_INFO(0, connection)
111111
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, qualifier, IS_STRING, 1, "null")
112112
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, schema, IS_STRING, 1, "null")
113-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, table_name, IS_STRING, 1, "null")
114-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, table_type, IS_STRING, 1, "null")
113+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, tableName, IS_STRING, 1, "null")
114+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, tableType, IS_STRING, 1, "null")
115115
ZEND_END_ARG_INFO()
116116

117117
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_exec, 0, 0, 2)
@@ -135,13 +135,13 @@ ZEND_END_ARG_INFO()
135135
#endif
136136

137137
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_stmt_errormsg, 0, 0, IS_STRING, 0)
138-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, stmt, "null")
138+
ZEND_ARG_INFO(0, stmt)
139139
ZEND_END_ARG_INFO()
140140

141141
#define arginfo_db2_stmt_error arginfo_db2_stmt_errormsg
142142

143143
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_conn_errormsg, 0, 0, IS_STRING, 0)
144-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, connection, "null")
144+
ZEND_ARG_INFO(0, connection)
145145
ZEND_END_ARG_INFO()
146146

147147
#define arginfo_db2_conn_error arginfo_db2_conn_errormsg
@@ -193,12 +193,12 @@ ZEND_END_ARG_INFO()
193193

194194
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_fetch_row, 0, 1, _IS_BOOL, 0)
195195
ZEND_ARG_INFO(0, stmt)
196-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row_number, IS_LONG, 1, "null")
196+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, rowNumber, IS_LONG, 1, "null")
197197
ZEND_END_ARG_INFO()
198198

199199
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_db2_fetch_assoc, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
200200
ZEND_ARG_INFO(0, stmt)
201-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row_number, IS_LONG, 1, "null")
201+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, rowNumber, IS_LONG, 1, "null")
202202
ZEND_END_ARG_INFO()
203203

204204
#define arginfo_db2_fetch_array arginfo_db2_fetch_assoc
@@ -207,7 +207,7 @@ ZEND_END_ARG_INFO()
207207

208208
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_db2_fetch_object, 0, 1, MAY_BE_OBJECT|MAY_BE_FALSE)
209209
ZEND_ARG_INFO(0, stmt)
210-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row_number, IS_LONG, 1, "null")
210+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, rowNumber, IS_LONG, 1, "null")
211211
ZEND_END_ARG_INFO()
212212

213213
#define arginfo_db2_free_result arginfo_db2_free_stmt
@@ -227,12 +227,12 @@ ZEND_END_ARG_INFO()
227227
#define arginfo_db2_server_info arginfo_db2_client_info
228228

229229
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_escape_string, 0, 1, IS_STRING, 0)
230-
ZEND_ARG_TYPE_INFO(0, string_literal, IS_STRING, 0)
230+
ZEND_ARG_TYPE_INFO(0, stringLiteral, IS_STRING, 0)
231231
ZEND_END_ARG_INFO()
232232

233233
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_db2_lob_read, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
234234
ZEND_ARG_INFO(0, stmt)
235-
ZEND_ARG_TYPE_INFO(0, colnum, IS_LONG, 0)
235+
ZEND_ARG_TYPE_INFO(0, columnNumber, IS_LONG, 0)
236236
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
237237
ZEND_END_ARG_INFO()
238238

0 commit comments

Comments
 (0)