Skip to content

Commit 3f71ba2

Browse files
committed
Remove incorrect format argument
rc is not used by the printf format.
1 parent 7f83976 commit 3f71ba2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ext/odbc/php_odbc.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
18151815
ZVAL_NULL(&tmp);
18161816
break;
18171817
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1818-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1818+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
18191819
ZVAL_FALSE(&tmp);
18201820
} else {
18211821
ZVAL_STRINGL(&tmp, buf, result->values[i].vallen);
@@ -1827,7 +1827,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
18271827
ZVAL_NULL(&tmp);
18281828
break;
18291829
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1830-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1830+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
18311831
ZVAL_FALSE(&tmp);
18321832
break;
18331833
}
@@ -1978,7 +1978,7 @@ PHP_FUNCTION(odbc_fetch_into)
19781978
ZVAL_NULL(&tmp);
19791979
break;
19801980
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1981-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1981+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
19821982
ZVAL_FALSE(&tmp);
19831983
} else {
19841984
ZVAL_STRINGL(&tmp, buf, result->values[i].vallen);
@@ -1990,7 +1990,7 @@ PHP_FUNCTION(odbc_fetch_into)
19901990
ZVAL_NULL(&tmp);
19911991
break;
19921992
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1993-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1993+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
19941994
ZVAL_FALSE(&tmp);
19951995
break;
19961996
}
@@ -2227,7 +2227,7 @@ PHP_FUNCTION(odbc_result)
22272227
RETURN_NULL();
22282228
} else if (result->values[field_ind].vallen == SQL_NO_TOTAL) {
22292229
zend_string_efree(field_str);
2230-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1, rc);
2230+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1);
22312231
RETURN_FALSE;
22322232
}
22332233
/* Reduce fieldlen by 1 if we have char data. One day we might
@@ -2253,7 +2253,7 @@ PHP_FUNCTION(odbc_result)
22532253
if (result->values[field_ind].vallen == SQL_NULL_DATA) {
22542254
RETURN_NULL();
22552255
} else if (result->values[field_ind].vallen == SQL_NO_TOTAL) {
2256-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1, rc);
2256+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1);
22572257
RETURN_FALSE;
22582258
} else {
22592259
RETURN_STRINGL(result->values[field_ind].value, result->values[field_ind].vallen);
@@ -2287,7 +2287,7 @@ PHP_FUNCTION(odbc_result)
22872287
efree(field);
22882288
RETURN_NULL();
22892289
} else if (result->values[field_ind].vallen == SQL_NO_TOTAL) {
2290-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1, rc);
2290+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1);
22912291
efree(field);
22922292
RETURN_FALSE;
22932293
}
@@ -2397,7 +2397,7 @@ PHP_FUNCTION(odbc_result_all)
23972397
if (rc == SQL_SUCCESS_WITH_INFO) {
23982398
if (result->values[i].vallen == SQL_NO_TOTAL) {
23992399
php_printf("</td></tr></table>");
2400-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1, rc);
2400+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1);
24012401
efree(buf);
24022402
RETURN_FALSE;
24032403
} else {
@@ -2420,7 +2420,7 @@ PHP_FUNCTION(odbc_result_all)
24202420
if (result->values[i].vallen == SQL_NULL_DATA) {
24212421
php_printf("<td>NULL</td>");
24222422
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
2423-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1, rc);
2423+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1);
24242424
php_printf("<td>FALSE</td>");
24252425
} else {
24262426
php_printf("<td>%s</td>", result->values[i].value);

0 commit comments

Comments
 (0)