You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
php-odbc: php{74,80} fix for [-Wincompatible-function-pointer-types] in ext/pdo_odbc/odbc_stmt.c
This commit is contained in:
@@ -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];
|
||||
Reference in New Issue
Block a user