@@ -2666,6 +2666,9 @@ PHP_FUNCTION(odbc_autocommit)
2666
2666
zval * pv_conn ;
2667
2667
bool pv_onoff = 0 ;
2668
2668
2669
+ zend_type_error ("Type error" );
2670
+ RETURN_THROWS ();
2671
+
2669
2672
if (zend_parse_parameters (ZEND_NUM_ARGS (), "O|b" , & pv_conn , odbc_connection_ce , & pv_onoff ) == FAILURE ) {
2670
2673
RETURN_THROWS ();
2671
2674
}
@@ -2696,13 +2699,19 @@ PHP_FUNCTION(odbc_autocommit)
2696
2699
/* {{{ Commit an ODBC transaction */
2697
2700
PHP_FUNCTION (odbc_commit )
2698
2701
{
2702
+ zend_type_error ("Type error" );
2703
+ RETURN_THROWS ();
2704
+
2699
2705
odbc_transact (INTERNAL_FUNCTION_PARAM_PASSTHRU , 1 );
2700
2706
}
2701
2707
/* }}} */
2702
2708
2703
2709
/* {{{ Rollback a transaction */
2704
2710
PHP_FUNCTION (odbc_rollback )
2705
2711
{
2712
+ zend_type_error ("Type error" );
2713
+ RETURN_THROWS ();
2714
+
2706
2715
odbc_transact (INTERNAL_FUNCTION_PARAM_PASSTHRU , 0 );
2707
2716
}
2708
2717
/* }}} */
@@ -2714,6 +2723,9 @@ static void php_odbc_lasterror(INTERNAL_FUNCTION_PARAMETERS, int mode)
2714
2723
zval * pv_handle = NULL ;
2715
2724
char * ret ;
2716
2725
2726
+ zend_type_error ("Type error" );
2727
+ RETURN_THROWS ();
2728
+
2717
2729
if (zend_parse_parameters (ZEND_NUM_ARGS (), "|O!" , & pv_handle , odbc_connection_ce ) == FAILURE ) {
2718
2730
RETURN_THROWS ();
2719
2731
}
@@ -2742,13 +2754,19 @@ static void php_odbc_lasterror(INTERNAL_FUNCTION_PARAMETERS, int mode)
2742
2754
/* {{{ Get the last error code */
2743
2755
PHP_FUNCTION (odbc_error )
2744
2756
{
2757
+ zend_type_error ("Type error" );
2758
+ RETURN_THROWS ();
2759
+
2745
2760
php_odbc_lasterror (INTERNAL_FUNCTION_PARAM_PASSTHRU , 0 );
2746
2761
}
2747
2762
/* }}} */
2748
2763
2749
2764
/* {{{ Get the last error message */
2750
2765
PHP_FUNCTION (odbc_errormsg )
2751
2766
{
2767
+ zend_type_error ("Type error" );
2768
+ RETURN_THROWS ();
2769
+
2752
2770
php_odbc_lasterror (INTERNAL_FUNCTION_PARAM_PASSTHRU , 1 );
2753
2771
}
2754
2772
/* }}} */
@@ -2768,6 +2786,9 @@ PHP_FUNCTION(odbc_setoption)
2768
2786
zval * pv_handle ;
2769
2787
zend_long pv_which , pv_opt , pv_val ;
2770
2788
2789
+ zend_type_error ("Type error" );
2790
+ RETURN_THROWS ();
2791
+
2771
2792
if (zend_parse_parameters (ZEND_NUM_ARGS (), "olll" , & pv_handle , & pv_which , & pv_opt , & pv_val ) == FAILURE ) {
2772
2793
RETURN_THROWS ();
2773
2794
}
@@ -2829,6 +2850,9 @@ PHP_FUNCTION(odbc_tables)
2829
2850
size_t cat_len = 0 , schema_len = 0 , table_len = 0 , type_len = 0 ;
2830
2851
RETCODE rc ;
2831
2852
2853
+ zend_type_error ("Type error" );
2854
+ RETURN_THROWS ();
2855
+
2832
2856
if (zend_parse_parameters (ZEND_NUM_ARGS (), "O|s!s!s!s!" , & pv_conn , odbc_connection_ce , & cat , & cat_len , & schema , & schema_len ,
2833
2857
& table , & table_len , & type , & type_len ) == FAILURE ) {
2834
2858
RETURN_THROWS ();
@@ -2896,6 +2920,9 @@ PHP_FUNCTION(odbc_columns)
2896
2920
size_t cat_len = 0 , schema_len = 0 , table_len = 0 , column_len = 0 ;
2897
2921
RETCODE rc ;
2898
2922
2923
+ zend_type_error ("Type error" );
2924
+ RETURN_THROWS ();
2925
+
2899
2926
if (zend_parse_parameters (ZEND_NUM_ARGS (), "O|s!s!s!s!" , & pv_conn , odbc_connection_ce , & cat , & cat_len , & schema , & schema_len ,
2900
2927
& table , & table_len , & column , & column_len ) == FAILURE ) {
2901
2928
RETURN_THROWS ();
@@ -2966,6 +2993,9 @@ PHP_FUNCTION(odbc_columnprivileges)
2966
2993
size_t cat_len = 0 , schema_len , table_len , column_len ;
2967
2994
RETCODE rc ;
2968
2995
2996
+ zend_type_error ("Type error" );
2997
+ RETURN_THROWS ();
2998
+
2969
2999
if (zend_parse_parameters (ZEND_NUM_ARGS (), "Os!sss" , & pv_conn , odbc_connection_ce , & cat , & cat_len , & schema , & schema_len ,
2970
3000
& table , & table_len , & column , & column_len ) == FAILURE ) {
2971
3001
RETURN_THROWS ();
@@ -3030,6 +3060,9 @@ PHP_FUNCTION(odbc_foreignkeys)
3030
3060
size_t pcat_len = 0 , pschema_len , ptable_len , fcat_len , fschema_len , ftable_len ;
3031
3061
RETCODE rc ;
3032
3062
3063
+ zend_type_error ("Type error" );
3064
+ RETURN_THROWS ();
3065
+
3033
3066
if (zend_parse_parameters (ZEND_NUM_ARGS (), "Os!sssss" , & pv_conn , odbc_connection_ce , & pcat , & pcat_len , & pschema , & pschema_len ,
3034
3067
& ptable , & ptable_len , & fcat , & fcat_len , & fschema , & fschema_len , & ftable , & ftable_len ) == FAILURE ) {
3035
3068
RETURN_THROWS ();
0 commit comments