diff options
| -rwxr-xr-x | ext/pdo/pdo_stmt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index ae8e4172aa..67c11f4755 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -675,8 +675,7 @@ static PHP_METHOD(PDOStatement, rowCount) { pdo_stmt_t *stmt = (pdo_stmt_t*)zend_object_store_get_object(getThis() TSRMLS_CC); - php_error_docref(NULL TSRMLS_CC, E_WARNING, "This statement is not a scrollable cursor and does not know the row count"); - RETURN_FALSE; + RETURN_LONG(stmt->row_count); } /* }}} */ |
