mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Fix shutdown
This commit is contained in:
parent
5ecbbf0a8d
commit
a19a36551b
1 changed files with 3 additions and 3 deletions
|
@ -367,13 +367,13 @@ static int php_sqlite_forget_persistent_id_numbers(zend_rsrc_list_entry *rsrc TS
|
|||
{
|
||||
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);
|
||||
|
||||
if (Z_TYPE_P(rsrc) != le_sqlite_pdb) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
||||
db->rsrc_id = FAILURE;
|
||||
|
||||
/* don't leave pending commits hanging around */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue