mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Correct in order
This commit is contained in:
parent
a876c54d1c
commit
01b255f0ef
1 changed files with 1 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue