php-odbc: php{74,80} fix for [-Wincompatible-function-pointer-types] in ext/pdo_odbc/odbc_stmt.c

This commit is contained in:
BjarneDMat
2026-04-12 14:59:01 +02:00
committed by Renee Otten
parent e987bcf29b
commit d8113bb80d
3 changed files with 27 additions and 0 deletions
+5
View File
@@ -1794,6 +1794,11 @@ subport ${php}-odbc {
categories-append databases
if {[vercmp ${branch} <= 8.0]} {
patchfiles-append \
patch-${php}-odbc-stmt_get_col.diff
}
description a PHP interface for accessing databases via Open \
DataBase Connectivity (ODBC)
@@ -0,0 +1,11 @@
--- ext/pdo_odbc/odbc_stmt.c.orig 2026-04-09 23:19:55
+++ ext/pdo_odbc/odbc_stmt.c 2026-04-09 23:21:18
@@ -648,7 +648,7 @@
return 1;
}
-static int odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees)
+static int odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int *caller_frees)
{
pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
pdo_odbc_column *C = &S->cols[colno];
@@ -0,0 +1,11 @@
--- ext/pdo_odbc/odbc_stmt.c.orig 2026-04-09 23:14:15
+++ ext/pdo_odbc/odbc_stmt.c 2026-04-09 23:14:44
@@ -646,7 +646,7 @@
return 1;
}
-static int odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees)
+static int odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int *caller_frees)
{
pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
pdo_odbc_column *C = &S->cols[colno];