felipe Mon, 20 Jul 2009 00:17:24 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=284404
Changed paths: U php/php-src/branches/PHP_5_2/NEWS U php/php-src/branches/PHP_5_2/ext/pdo_firebird/firebird_statement.c U php/php-src/branches/PHP_5_3/ext/pdo_firebird/firebird_statement.c U php/php-src/trunk/ext/pdo_firebird/firebird_statement.c Log: - Fixed bug #48057 (Only the date fields of the first row are fetched, others are empty) patch by: info at programmiernutte dot net Bug: http://bugs.php.net/48057 (Open) Only the date fields of the first row are fetched, others are empty Modified: php/php-src/branches/PHP_5_2/NEWS =================================================================== --- php/php-src/branches/PHP_5_2/NEWS 2009-07-20 00:09:16 UTC (rev 284403) +++ php/php-src/branches/PHP_5_2/NEWS 2009-07-20 00:17:24 UTC (rev 284404) @@ -4,6 +4,7 @@ - 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 @@ 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) Modified: php/php-src/branches/PHP_5_2/ext/pdo_firebird/firebird_statement.c =================================================================== --- php/php-src/branches/PHP_5_2/ext/pdo_firebird/firebird_statement.c 2009-07-20 00:09:16 UTC (rev 284403) +++ php/php-src/branches/PHP_5_2/ext/pdo_firebird/firebird_statement.c 2009-07-20 00:17:24 UTC (rev 284404) @@ -417,7 +417,8 @@ } /* 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: Modified: php/php-src/branches/PHP_5_3/ext/pdo_firebird/firebird_statement.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/pdo_firebird/firebird_statement.c 2009-07-20 00:09:16 UTC (rev 284403) +++ php/php-src/branches/PHP_5_3/ext/pdo_firebird/firebird_statement.c 2009-07-20 00:17:24 UTC (rev 284404) @@ -363,7 +363,8 @@ fmt = S->H->timestamp_format ? S->H->timestamp_format : PDO_FB_DEF_TIMESTAMP_FMT; } /* 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: Modified: php/php-src/trunk/ext/pdo_firebird/firebird_statement.c =================================================================== --- php/php-src/trunk/ext/pdo_firebird/firebird_statement.c 2009-07-20 00:09:16 UTC (rev 284403) +++ php/php-src/trunk/ext/pdo_firebird/firebird_statement.c 2009-07-20 00:17:24 UTC (rev 284404) @@ -359,7 +359,8 @@ } /* 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:
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php