Skip to content

Commit 9ce5776

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Remove incorrect format argument
2 parents 4c80e43 + 3f71ba2 commit 9ce5776

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
@@ -1448,7 +1448,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
14481448
ZVAL_NULL(&tmp);
14491449
break;
14501450
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1451-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1451+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
14521452
ZVAL_FALSE(&tmp);
14531453
} else {
14541454
ZVAL_STRINGL(&tmp, buf, result->values[i].vallen);
@@ -1460,7 +1460,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
14601460
ZVAL_NULL(&tmp);
14611461
break;
14621462
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1463-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1463+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
14641464
ZVAL_FALSE(&tmp);
14651465
break;
14661466
}
@@ -1608,7 +1608,7 @@ PHP_FUNCTION(odbc_fetch_into)
16081608
ZVAL_NULL(&tmp);
16091609
break;
16101610
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1611-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1611+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
16121612
ZVAL_FALSE(&tmp);
16131613
} else {
16141614
ZVAL_STRINGL(&tmp, buf, result->values[i].vallen);
@@ -1620,7 +1620,7 @@ PHP_FUNCTION(odbc_fetch_into)
16201620
ZVAL_NULL(&tmp);
16211621
break;
16221622
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1623-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1623+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
16241624
ZVAL_FALSE(&tmp);
16251625
break;
16261626
}
@@ -1852,7 +1852,7 @@ PHP_FUNCTION(odbc_result)
18521852
RETURN_NULL();
18531853
} else if (result->values[field_ind].vallen == SQL_NO_TOTAL) {
18541854
zend_string_efree(field_str);
1855-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1, rc);
1855+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1);
18561856
RETURN_FALSE;
18571857
}
18581858
/* Reduce fieldlen by 1 if we have char data. One day we might
@@ -1878,7 +1878,7 @@ PHP_FUNCTION(odbc_result)
18781878
if (result->values[field_ind].vallen == SQL_NULL_DATA) {
18791879
RETURN_NULL();
18801880
} else if (result->values[field_ind].vallen == SQL_NO_TOTAL) {
1881-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1, rc);
1881+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1);
18821882
RETURN_FALSE;
18831883
} else {
18841884
RETURN_STRINGL(result->values[field_ind].value, result->values[field_ind].vallen);
@@ -1912,7 +1912,7 @@ PHP_FUNCTION(odbc_result)
19121912
efree(field);
19131913
RETURN_NULL();
19141914
} else if (result->values[field_ind].vallen == SQL_NO_TOTAL) {
1915-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1, rc);
1915+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1);
19161916
efree(field);
19171917
RETURN_FALSE;
19181918
}
@@ -2021,7 +2021,7 @@ PHP_FUNCTION(odbc_result_all)
20212021
if (rc == SQL_SUCCESS_WITH_INFO) {
20222022
if (result->values[i].vallen == SQL_NO_TOTAL) {
20232023
php_printf("</td></tr></table>");
2024-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1, rc);
2024+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1);
20252025
efree(buf);
20262026
RETURN_FALSE;
20272027
} else {
@@ -2044,7 +2044,7 @@ PHP_FUNCTION(odbc_result_all)
20442044
if (result->values[i].vallen == SQL_NULL_DATA) {
20452045
php_printf("<td>NULL</td>");
20462046
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
2047-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1, rc);
2047+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1);
20482048
php_printf("<td>FALSE</td>");
20492049
} else {
20502050
php_printf("<td>%s</td>", result->values[i].value);

0 commit comments

Comments
 (0)