Skip to content

Commit ca6eb0a

Browse files
committed
test 5
1 parent 879e0e3 commit ca6eb0a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ext/odbc/php_odbc.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3140,6 +3140,9 @@ PHP_FUNCTION(odbc_gettypeinfo)
31403140
RETCODE rc;
31413141
SQLSMALLINT data_type;
31423142

3143+
zend_type_error("Type error");
3144+
RETURN_THROWS();
3145+
31433146
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &pv_conn, odbc_connection_ce, &pv_data_type) == FAILURE) {
31443147
RETURN_THROWS();
31453148
}
@@ -3199,6 +3202,9 @@ PHP_FUNCTION(odbc_primarykeys)
31993202
size_t cat_len = 0, schema_len, table_len;
32003203
RETCODE rc;
32013204

3205+
zend_type_error("Type error");
3206+
RETURN_THROWS();
3207+
32023208
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os!ss", &pv_conn, odbc_connection_ce, &cat, &cat_len, &schema, &schema_len, &table, &table_len) == FAILURE) {
32033209
RETURN_THROWS();
32043210
}
@@ -3260,6 +3266,9 @@ PHP_FUNCTION(odbc_procedurecolumns)
32603266
size_t cat_len = 0, schema_len = 0, proc_len = 0, col_len = 0;
32613267
RETCODE rc;
32623268

3269+
zend_type_error("Type error");
3270+
RETURN_THROWS();
3271+
32633272
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|s!s!s!s!", &pv_conn, odbc_connection_ce, &cat, &cat_len, &schema, &schema_len,
32643273
&proc, &proc_len, &col, &col_len) == FAILURE) {
32653274
RETURN_THROWS();
@@ -3324,6 +3333,9 @@ PHP_FUNCTION(odbc_procedures)
33243333
size_t cat_len = 0, schema_len = 0, proc_len = 0;
33253334
RETCODE rc;
33263335

3336+
zend_type_error("Type error");
3337+
RETURN_THROWS();
3338+
33273339
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|s!s!s!", &pv_conn, odbc_connection_ce, &cat, &cat_len, &schema, &schema_len, &proc, &proc_len) == FAILURE) {
33283340
RETURN_THROWS();
33293341
}
@@ -3387,6 +3399,9 @@ PHP_FUNCTION(odbc_specialcolumns)
33873399
SQLUSMALLINT type, scope, nullable;
33883400
RETCODE rc;
33893401

3402+
zend_type_error("Type error");
3403+
RETURN_THROWS();
3404+
33903405
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ols!ssll", &pv_conn, odbc_connection_ce, &vtype, &cat, &cat_len, &schema, &schema_len,
33913406
&name, &name_len, &vscope, &vnullable) == FAILURE) {
33923407
RETURN_THROWS();
@@ -3456,6 +3471,9 @@ PHP_FUNCTION(odbc_statistics)
34563471
SQLUSMALLINT unique, reserved;
34573472
RETCODE rc;
34583473

3474+
zend_type_error("Type error");
3475+
RETURN_THROWS();
3476+
34593477
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os!ssll", &pv_conn, odbc_connection_ce, &cat, &cat_len, &schema, &schema_len,
34603478
&name, &name_len, &vunique, &vreserved) == FAILURE) {
34613479
RETURN_THROWS();
@@ -3523,6 +3541,9 @@ PHP_FUNCTION(odbc_tableprivileges)
35233541
size_t cat_len = 0, schema_len, table_len;
35243542
RETCODE rc;
35253543

3544+
zend_type_error("Type error");
3545+
RETURN_THROWS();
3546+
35263547
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os!ss", &pv_conn, odbc_connection_ce, &cat, &cat_len, &schema, &schema_len, &table, &table_len) == FAILURE) {
35273548
RETURN_THROWS();
35283549
}

0 commit comments

Comments
 (0)