diff options
author | Felipe Pena <felipe@php.net> | 2010-06-02 12:20:38 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-06-02 12:20:38 +0000 |
commit | 2b2802738cc70f59c7c6c3979a563dbd11b2cf0b (patch) | |
tree | 814e6b3f1346cec54a424fb3c2b14b2c0b2b3aa1 /ext/pdo_dblib | |
parent | 8296e705bf1d36f500ba82cab2d4ee54ae76a8c9 (diff) | |
download | php-git-2b2802738cc70f59c7c6c3979a563dbd11b2cf0b.tar.gz |
- Fixed build and next_rowset prototype
Diffstat (limited to 'ext/pdo_dblib')
-rw-r--r-- | ext/pdo_dblib/dblib_stmt.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c index e57682e27d..bad9dae8a4 100644 --- a/ext/pdo_dblib/dblib_stmt.c +++ b/ext/pdo_dblib/dblib_stmt.c @@ -50,14 +50,14 @@ static int pdo_dblib_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) { pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; - dblib_dblib_stmt_cursor_closer(stmt); + dblib_dblib_stmt_cursor_closer(stmt TSRMLS_CC); efree(S); return 1; } -static int pdo_dblib_stmt_next_rowset(pdo_stmt_t *stmt) +static int pdo_dblib_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC) { pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; pdo_dblib_db_handle *H = S->H; @@ -77,7 +77,6 @@ static int pdo_dblib_stmt_next_rowset(pdo_stmt_t *stmt) static int pdo_dblib_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) { - pdo_dbh_t *dbh = stmt->dbh; pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; pdo_dblib_db_handle *H = S->H; RETCODE ret; @@ -92,7 +91,7 @@ static int pdo_dblib_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) return 0; } - ret = pdo_dblib_stmt_next_rowset(stmt); + ret = pdo_dblib_stmt_next_rowset(stmt TSRMLS_CC); if (ret == 0) { return 0; @@ -109,7 +108,6 @@ static int pdo_dblib_stmt_fetch(pdo_stmt_t *stmt, { RETCODE ret; - int i; pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; pdo_dblib_db_handle *H = S->H; |