cvs: php-src(PHP_5_2) / NEWS /ext/pdo_mysql mysql_statement.c
| From: | Ilia Alshanetsky | Date: | Sun, 08 Apr 2007 15:26:21 +0000 |
| Subject: | cvs: php-src(PHP_5_2) / NEWS /ext/pdo_mysql mysql_statement.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43776@lists.php.net to get a copy of this message | ||
iliaa Sun Apr 8 15:26:21 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/pdo_mysql mysql_statement.c
/php-src NEWS
Log:
Fixed bug #40822 (pdo_mysql does not return rowCount() on select).
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_mysql/mysql_statement.c?r1=1.48.2.14.2.3&r2=1.48.2.14.2.4&diff_format=u
Index: php-src/ext/pdo_mysql/mysql_statement.c
diff -u php-src/ext/pdo_mysql/mysql_statement.c:1.48.2.14.2.3
php-src/ext/pdo_mysql/mysql_statement.c:1.48.2.14.2.4
--- php-src/ext/pdo_mysql/mysql_statement.c:1.48.2.14.2.3 Mon Jan 1 09:36:05 2007
+++ php-src/ext/pdo_mysql/mysql_statement.c Sun Apr 8 15:26:21 2007
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mysql_statement.c,v 1.48.2.14.2.3 2007/01/01 09:36:05 sebastian Exp $ */
+/* $Id: mysql_statement.c,v 1.48.2.14.2.4 2007/04/08 15:26:21 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -231,7 +231,7 @@
return 0;
}
- stmt->row_count = 0;
+ stmt->row_count = mysql_num_rows(S->result);
if (!stmt->executed) {
stmt->column_count = (int) mysql_num_fields(S->result);
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.629&r2=1.2027.2.547.2.630&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.629 php-src/NEWS:1.2027.2.547.2.630
--- php-src/NEWS:1.2027.2.547.2.629 Sun Apr 8 00:18:37 2007
+++ php-src/NEWS Sun Apr 8 15:26:21 2007
@@ -1,6 +1,6 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?? ??? 2007, PHP 5.2.2
+05 Apr 2007, PHP 5.2.2RC1
- Improved bundled GD
. Sync to 2.0.35
. colors allocated henceforth from the resulting image overwrite the palette
@@ -66,6 +66,7 @@
- Fixed bug #40836 (Segfault in ext/dom). (Rob)
- Fixed bug #40833 (Crash when using unset() on an ArrayAccess object retrieved
via __get()). (Dmitry)
+- Fixed bug #40822 (pdo_mysql does not return rowCount() on select). (Ilia)
- Fixed bug #40815 (using strings like "class::func" and static methods in
set_exception_handler() might result in crash). (Tony)
- Fixed bug #40809 (Poor performance of ".="). (Dmitry)