From 49678f0908f8b7cdfca72f3e1bfd6b7af769186f Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 12 Oct 2005 15:03:03 +0000 Subject: [PATCH] MFH: Fixed bug #34758 (PDO_DBLIB did not implement rowCount()). --- NEWS | 1 + ext/pdo_dblib/dblib_stmt.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 2ff53ff137..71c128ac4a 100644 --- a/NEWS +++ b/NEWS @@ -62,6 +62,7 @@ PHP NEWS - Fixed bug #34785 (subclassing of mysqli_stmt does not work). (Georg) - Fixed bug #34777 (Crash in dblib when fetching non-existent error info). (Ilia) - Fixed bug #34771 (strtotime() fails with 1-12am/pm). (Derick) +- Fixed bug #34758 (PDO_DBLIB did not implement rowCount()). (Ilia) - Fixed bug #34757 (iconv_substr() gives "Unknown error" when offset > string length). (Tony) - Fixed bug #34742 (ftp wrapper failures caused from segmented command diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c index a6e8b492d6..f965b5dd59 100644 --- a/ext/pdo_dblib/dblib_stmt.c +++ b/ext/pdo_dblib/dblib_stmt.c @@ -96,6 +96,8 @@ static int pdo_dblib_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) ret = dbnextrow(H->link); + stmt->row_count = DBCOUNT(H->link); + if (ret == NO_MORE_ROWS) { return 1; } -- 2.50.1