diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 8db21e90e5f..4cfdc6c30df 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -1996,7 +1996,7 @@ PHP_FUNCTION(odbc_result_all) PHPWRITE(buf, result->longreadlen); } else if (rc != SQL_SUCCESS) { php_printf(""); - php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (retcode %u)", i + 1, rc); + php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (retcode %u)", i + 1, rc); efree(buf); RETURN_FALSE; } else if (result->values[i].vallen == SQL_NULL_DATA) {