@@ -3140,6 +3140,9 @@ PHP_FUNCTION(odbc_gettypeinfo)
3140
3140
RETCODE rc ;
3141
3141
SQLSMALLINT data_type ;
3142
3142
3143
+ zend_type_error ("Type error" );
3144
+ RETURN_THROWS ();
3145
+
3143
3146
if (zend_parse_parameters (ZEND_NUM_ARGS (), "O|l" , & pv_conn , odbc_connection_ce , & pv_data_type ) == FAILURE ) {
3144
3147
RETURN_THROWS ();
3145
3148
}
@@ -3199,6 +3202,9 @@ PHP_FUNCTION(odbc_primarykeys)
3199
3202
size_t cat_len = 0 , schema_len , table_len ;
3200
3203
RETCODE rc ;
3201
3204
3205
+ zend_type_error ("Type error" );
3206
+ RETURN_THROWS ();
3207
+
3202
3208
if (zend_parse_parameters (ZEND_NUM_ARGS (), "Os!ss" , & pv_conn , odbc_connection_ce , & cat , & cat_len , & schema , & schema_len , & table , & table_len ) == FAILURE ) {
3203
3209
RETURN_THROWS ();
3204
3210
}
@@ -3260,6 +3266,9 @@ PHP_FUNCTION(odbc_procedurecolumns)
3260
3266
size_t cat_len = 0 , schema_len = 0 , proc_len = 0 , col_len = 0 ;
3261
3267
RETCODE rc ;
3262
3268
3269
+ zend_type_error ("Type error" );
3270
+ RETURN_THROWS ();
3271
+
3263
3272
if (zend_parse_parameters (ZEND_NUM_ARGS (), "O|s!s!s!s!" , & pv_conn , odbc_connection_ce , & cat , & cat_len , & schema , & schema_len ,
3264
3273
& proc , & proc_len , & col , & col_len ) == FAILURE ) {
3265
3274
RETURN_THROWS ();
@@ -3324,6 +3333,9 @@ PHP_FUNCTION(odbc_procedures)
3324
3333
size_t cat_len = 0 , schema_len = 0 , proc_len = 0 ;
3325
3334
RETCODE rc ;
3326
3335
3336
+ zend_type_error ("Type error" );
3337
+ RETURN_THROWS ();
3338
+
3327
3339
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 ) {
3328
3340
RETURN_THROWS ();
3329
3341
}
@@ -3387,6 +3399,9 @@ PHP_FUNCTION(odbc_specialcolumns)
3387
3399
SQLUSMALLINT type , scope , nullable ;
3388
3400
RETCODE rc ;
3389
3401
3402
+ zend_type_error ("Type error" );
3403
+ RETURN_THROWS ();
3404
+
3390
3405
if (zend_parse_parameters (ZEND_NUM_ARGS (), "Ols!ssll" , & pv_conn , odbc_connection_ce , & vtype , & cat , & cat_len , & schema , & schema_len ,
3391
3406
& name , & name_len , & vscope , & vnullable ) == FAILURE ) {
3392
3407
RETURN_THROWS ();
@@ -3456,6 +3471,9 @@ PHP_FUNCTION(odbc_statistics)
3456
3471
SQLUSMALLINT unique , reserved ;
3457
3472
RETCODE rc ;
3458
3473
3474
+ zend_type_error ("Type error" );
3475
+ RETURN_THROWS ();
3476
+
3459
3477
if (zend_parse_parameters (ZEND_NUM_ARGS (), "Os!ssll" , & pv_conn , odbc_connection_ce , & cat , & cat_len , & schema , & schema_len ,
3460
3478
& name , & name_len , & vunique , & vreserved ) == FAILURE ) {
3461
3479
RETURN_THROWS ();
@@ -3523,6 +3541,9 @@ PHP_FUNCTION(odbc_tableprivileges)
3523
3541
size_t cat_len = 0 , schema_len , table_len ;
3524
3542
RETCODE rc ;
3525
3543
3544
+ zend_type_error ("Type error" );
3545
+ RETURN_THROWS ();
3546
+
3526
3547
if (zend_parse_parameters (ZEND_NUM_ARGS (), "Os!ss" , & pv_conn , odbc_connection_ce , & cat , & cat_len , & schema , & schema_len , & table , & table_len ) == FAILURE ) {
3527
3548
RETURN_THROWS ();
3528
3549
}
0 commit comments