]> granicus.if.org Git - php/commitdiff
- Fixed bug #48057 (Only the date fields of the first row are fetched, others are...
authorFelipe Pena <felipe@php.net>
Mon, 20 Jul 2009 00:17:24 +0000 (00:17 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 20 Jul 2009 00:17:24 +0000 (00:17 +0000)
  patch by: info at programmiernutte dot net

NEWS
ext/pdo_firebird/firebird_statement.c

diff --git a/NEWS b/NEWS
index e3d28f984242c3130d562059d837bf2cf862b83b..04a64171dfd9aa3e8f5ffd844be82b4e632d7be3 100644 (file)
--- 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)
index 240c5d9a50263b2f0c739d517279f13992d24972..2f08f452b9dc295e3725b6a033541ba8ac10f173 100644 (file)
@@ -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: