Skip to content

Commit 879e0e3

Browse files
committed
test 4
1 parent ca13237 commit 879e0e3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

ext/odbc/php_odbc.c

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,6 +2666,9 @@ PHP_FUNCTION(odbc_autocommit)
26662666
zval *pv_conn;
26672667
bool pv_onoff = 0;
26682668

2669+
zend_type_error("Type error");
2670+
RETURN_THROWS();
2671+
26692672
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|b", &pv_conn, odbc_connection_ce, &pv_onoff) == FAILURE) {
26702673
RETURN_THROWS();
26712674
}
@@ -2696,13 +2699,19 @@ PHP_FUNCTION(odbc_autocommit)
26962699
/* {{{ Commit an ODBC transaction */
26972700
PHP_FUNCTION(odbc_commit)
26982701
{
2702+
zend_type_error("Type error");
2703+
RETURN_THROWS();
2704+
26992705
odbc_transact(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
27002706
}
27012707
/* }}} */
27022708

27032709
/* {{{ Rollback a transaction */
27042710
PHP_FUNCTION(odbc_rollback)
27052711
{
2712+
zend_type_error("Type error");
2713+
RETURN_THROWS();
2714+
27062715
odbc_transact(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
27072716
}
27082717
/* }}} */
@@ -2714,6 +2723,9 @@ static void php_odbc_lasterror(INTERNAL_FUNCTION_PARAMETERS, int mode)
27142723
zval *pv_handle = NULL;
27152724
char *ret;
27162725

2726+
zend_type_error("Type error");
2727+
RETURN_THROWS();
2728+
27172729
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|O!", &pv_handle, odbc_connection_ce) == FAILURE) {
27182730
RETURN_THROWS();
27192731
}
@@ -2742,13 +2754,19 @@ static void php_odbc_lasterror(INTERNAL_FUNCTION_PARAMETERS, int mode)
27422754
/* {{{ Get the last error code */
27432755
PHP_FUNCTION(odbc_error)
27442756
{
2757+
zend_type_error("Type error");
2758+
RETURN_THROWS();
2759+
27452760
php_odbc_lasterror(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
27462761
}
27472762
/* }}} */
27482763

27492764
/* {{{ Get the last error message */
27502765
PHP_FUNCTION(odbc_errormsg)
27512766
{
2767+
zend_type_error("Type error");
2768+
RETURN_THROWS();
2769+
27522770
php_odbc_lasterror(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
27532771
}
27542772
/* }}} */
@@ -2768,6 +2786,9 @@ PHP_FUNCTION(odbc_setoption)
27682786
zval *pv_handle;
27692787
zend_long pv_which, pv_opt, pv_val;
27702788

2789+
zend_type_error("Type error");
2790+
RETURN_THROWS();
2791+
27712792
if (zend_parse_parameters(ZEND_NUM_ARGS(), "olll", &pv_handle, &pv_which, &pv_opt, &pv_val) == FAILURE) {
27722793
RETURN_THROWS();
27732794
}
@@ -2829,6 +2850,9 @@ PHP_FUNCTION(odbc_tables)
28292850
size_t cat_len = 0, schema_len = 0, table_len = 0, type_len = 0;
28302851
RETCODE rc;
28312852

2853+
zend_type_error("Type error");
2854+
RETURN_THROWS();
2855+
28322856
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|s!s!s!s!", &pv_conn, odbc_connection_ce, &cat, &cat_len, &schema, &schema_len,
28332857
&table, &table_len, &type, &type_len) == FAILURE) {
28342858
RETURN_THROWS();
@@ -2896,6 +2920,9 @@ PHP_FUNCTION(odbc_columns)
28962920
size_t cat_len = 0, schema_len = 0, table_len = 0, column_len = 0;
28972921
RETCODE rc;
28982922

2923+
zend_type_error("Type error");
2924+
RETURN_THROWS();
2925+
28992926
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|s!s!s!s!", &pv_conn, odbc_connection_ce, &cat, &cat_len, &schema, &schema_len,
29002927
&table, &table_len, &column, &column_len) == FAILURE) {
29012928
RETURN_THROWS();
@@ -2966,6 +2993,9 @@ PHP_FUNCTION(odbc_columnprivileges)
29662993
size_t cat_len = 0, schema_len, table_len, column_len;
29672994
RETCODE rc;
29682995

2996+
zend_type_error("Type error");
2997+
RETURN_THROWS();
2998+
29692999
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os!sss", &pv_conn, odbc_connection_ce, &cat, &cat_len, &schema, &schema_len,
29703000
&table, &table_len, &column, &column_len) == FAILURE) {
29713001
RETURN_THROWS();
@@ -3030,6 +3060,9 @@ PHP_FUNCTION(odbc_foreignkeys)
30303060
size_t pcat_len = 0, pschema_len, ptable_len, fcat_len, fschema_len, ftable_len;
30313061
RETCODE rc;
30323062

3063+
zend_type_error("Type error");
3064+
RETURN_THROWS();
3065+
30333066
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os!sssss", &pv_conn, odbc_connection_ce, &pcat, &pcat_len, &pschema, &pschema_len,
30343067
&ptable, &ptable_len, &fcat, &fcat_len, &fschema, &fschema_len, &ftable, &ftable_len) == FAILURE) {
30353068
RETURN_THROWS();

0 commit comments

Comments
 (0)