Skip to content

Commit bd2c743

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Remove incorrect format argument
2 parents 721bd97 + 9ce5776 commit bd2c743

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
@@ -1451,7 +1451,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
14511451
ZVAL_NULL(&tmp);
14521452
break;
14531453
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1454-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1454+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
14551455
ZVAL_FALSE(&tmp);
14561456
} else {
14571457
ZVAL_STRINGL(&tmp, buf, result->values[i].vallen);
@@ -1463,7 +1463,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
14631463
ZVAL_NULL(&tmp);
14641464
break;
14651465
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1466-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1466+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
14671467
ZVAL_FALSE(&tmp);
14681468
break;
14691469
}
@@ -1613,7 +1613,7 @@ PHP_FUNCTION(odbc_fetch_into)
16131613
ZVAL_NULL(&tmp);
16141614
break;
16151615
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1616-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1616+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
16171617
ZVAL_FALSE(&tmp);
16181618
} else {
16191619
ZVAL_STRINGL(&tmp, buf, result->values[i].vallen);
@@ -1625,7 +1625,7 @@ PHP_FUNCTION(odbc_fetch_into)
16251625
ZVAL_NULL(&tmp);
16261626
break;
16271627
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
1628-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1, rc);
1628+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", i + 1);
16291629
ZVAL_FALSE(&tmp);
16301630
break;
16311631
}
@@ -1860,7 +1860,7 @@ PHP_FUNCTION(odbc_result)
18601860
RETURN_NULL();
18611861
} else if (result->values[field_ind].vallen == SQL_NO_TOTAL) {
18621862
zend_string_efree(field_str);
1863-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1, rc);
1863+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1);
18641864
RETURN_FALSE;
18651865
}
18661866
/* Reduce fieldlen by 1 if we have char data. One day we might
@@ -1886,7 +1886,7 @@ PHP_FUNCTION(odbc_result)
18861886
if (result->values[field_ind].vallen == SQL_NULL_DATA) {
18871887
RETURN_NULL();
18881888
} else if (result->values[field_ind].vallen == SQL_NO_TOTAL) {
1889-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1, rc);
1889+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1);
18901890
RETURN_FALSE;
18911891
} else {
18921892
RETURN_STRINGL(result->values[field_ind].value, result->values[field_ind].vallen);
@@ -1920,7 +1920,7 @@ PHP_FUNCTION(odbc_result)
19201920
efree(field);
19211921
RETURN_NULL();
19221922
} else if (result->values[field_ind].vallen == SQL_NO_TOTAL) {
1923-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1, rc);
1923+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (driver cannot determine length)", field_ind + 1);
19241924
efree(field);
19251925
RETURN_FALSE;
19261926
}
@@ -2032,7 +2032,7 @@ PHP_FUNCTION(odbc_result_all)
20322032
if (rc == SQL_SUCCESS_WITH_INFO) {
20332033
if (result->values[i].vallen == SQL_NO_TOTAL) {
20342034
php_printf("</td></tr></table>");
2035-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1, rc);
2035+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1);
20362036
efree(buf);
20372037
RETURN_FALSE;
20382038
} else {
@@ -2055,7 +2055,7 @@ PHP_FUNCTION(odbc_result_all)
20552055
if (result->values[i].vallen == SQL_NULL_DATA) {
20562056
php_printf("<td>NULL</td>");
20572057
} else if (result->values[i].vallen == SQL_NO_TOTAL) {
2058-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1, rc);
2058+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (driver cannot determine length)", i + 1);
20592059
php_printf("<td>FALSE</td>");
20602060
} else {
20612061
php_printf("<td>%s</td>", result->values[i].value);

0 commit comments

Comments
 (0)