From: Felipe Pena Date: Mon, 20 Jul 2009 00:17:24 +0000 (+0000) Subject: - Fixed bug #48057 (Only the date fields of the first row are fetched, others are... X-Git-Tag: php-5.2.11RC1~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c16d5d946cedccccc20146ffd6ebf53caa72ce17;p=php - Fixed bug #48057 (Only the date fields of the first row are fetched, others are empty) patch by: info at programmiernutte dot net --- diff --git a/NEWS b/NEWS index e3d28f9842..04a64171df 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ PHP NEWS - Fixed regression in cURL extension that prevented flush of data to output defined as a file handle. (Ilia) +- Fixed bug #48980 (Crash when compiling with pdo_firebird). (Felipe) - Fixed bug #48913 (Too long error code strings in pdo_odbc driver). (naf at altlinux dot ru, Felipe) - Fixed bug #48788 (RecursiveDirectoryIterator doesn't descend into symlinked @@ -37,6 +38,8 @@ PHP NEWS errors when errors are logged). (Jani) - Fixed bug #48116 (Fixed build with Openssl 1.0). (Pierre, Al dot Smith at aeschi dot ch dot eu dot org) +- Fixed bug #48057 (Only the date fields of the first row are fetched, + others are empty). (info at programmiernutte dot net) - Fixed bug #47481 (natcasesort() does not sort extended ASCII characters correctly). (Herman Radtke) - Fixed bug #47351 (Memory leak in DateTime). (Derick, Tobias John) diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index 240c5d9a50..2f08f452b9 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -417,7 +417,8 @@ static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, /* {{ } /* convert the timestamp into a string */ - *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len = 80, NULL); + *len = 80; + *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len, NULL); *len = strftime(*ptr, *len, fmt, &t); break; case SQL_BLOB: