diff options
author | Marcus Boerger <helly@php.net> | 2003-12-27 22:11:48 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-12-27 22:11:48 +0000 |
commit | a876c54d1cf3f0b9c29cecd4dc5f5b0fb236a011 (patch) | |
tree | 7527ae1241442a95e171e091f1217dca5c9237e4 /ext/sqlite/sqlite.c | |
parent | fd7fca402b02ffb8c5e022e45d0487bf2cadd8fe (diff) | |
download | php-git-a876c54d1cf3f0b9c29cecd4dc5f5b0fb236a011.tar.gz |
Bugfix #25329
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index 29a3bc1a21..214d2e4cfb 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -375,6 +375,9 @@ static int php_sqlite_forget_persistent_id_numbers(zend_rsrc_list_entry *rsrc TS { struct php_sqlite_db *db; + /* 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); + if (Z_TYPE_P(rsrc) != le_sqlite_pdb) { return 0; } @@ -386,9 +389,6 @@ static int php_sqlite_forget_persistent_id_numbers(zend_rsrc_list_entry *rsrc TS /* don't leave pending commits hanging around */ sqlite_exec(db->db, "ROLLBACK", NULL, NULL, NULL); - /* 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); - return 0; } |