summaryrefslogtreecommitdiff
path: root/ext/sqlite/sqlite.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-27 22:16:13 +0000
committerMarcus Boerger <helly@php.net>2003-12-27 22:16:13 +0000
commit01b255f0ef53b39662dc13b6f203af23ced840cc (patch)
tree315dc3398c81e4ee5f5335f606467c9c2b6f3055 /ext/sqlite/sqlite.c
parenta876c54d1cf3f0b9c29cecd4dc5f5b0fb236a011 (diff)
downloadphp-git-01b255f0ef53b39662dc13b6f203af23ced840cc.tar.gz
Correct in order
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r--ext/sqlite/sqlite.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c
index 214d2e4cfb..2a4a095f7d 100644
--- a/ext/sqlite/sqlite.c
+++ b/ext/sqlite/sqlite.c
@@ -373,7 +373,7 @@ static ZEND_RSRC_DTOR_FUNC(php_sqlite_result_dtor)
static int php_sqlite_forget_persistent_id_numbers(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
- struct php_sqlite_db *db;
+ struct php_sqlite_db *db = (struct php_sqlite_db*)rsrc->ptr;
/* prevent bad mojo if someone tries to use a previously registered function in the next request */
zend_hash_apply(&db->callbacks, (apply_func_t)php_sqlite_callback_invalidator TSRMLS_CC);
@@ -382,8 +382,6 @@ static int php_sqlite_forget_persistent_id_numbers(zend_rsrc_list_entry *rsrc TS
return 0;
}
- db = (struct php_sqlite_db*)rsrc->ptr;
-
db->rsrc_id = FAILURE;
/* don't leave pending commits hanging around */