From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- dev-lang/php/files/php547-ds-odbc_blob.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dev-lang/php/files/php547-ds-odbc_blob.patch (limited to 'dev-lang/php/files/php547-ds-odbc_blob.patch') diff --git a/dev-lang/php/files/php547-ds-odbc_blob.patch b/dev-lang/php/files/php547-ds-odbc_blob.patch new file mode 100644 index 0000000..041ce84 --- /dev/null +++ b/dev-lang/php/files/php547-ds-odbc_blob.patch @@ -0,0 +1,19 @@ +diff -dPNur php-5.3.2/ext/pdo_odbc/odbc_stmt.c php-5.3.2-ds/ext/pdo_odbc/odbc_stmt.c +--- php-5.3.2/ext/pdo_odbc/odbc_stmt.c 2010-01-03 10:23:27.000000000 +0100 ++++ php-5.3.2-ds/ext/pdo_odbc/odbc_stmt.c 2010-08-08 01:00:46.000000000 +0200 +@@ -569,9 +569,15 @@ + return 0; + } + } ++ ++ if (displaysize < 0) { ++ col->maxlen = S->cols[colno].datalen = 0; ++ colsize = 256; ++ } else { + colsize = displaysize; + + col->maxlen = S->cols[colno].datalen = colsize; ++ } + col->namelen = colnamelen; + col->name = estrdup(S->cols[colno].colname); + S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); -- cgit v1.2.3