summaryrefslogtreecommitdiff
path: root/ext/sqlite/sqlite.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-11-14 21:52:27 +0000
committerAntony Dovgal <tony2001@php.net>2005-11-14 21:52:27 +0000
commite658842761f3d2443ca547379e054c95ca308378 (patch)
tree4268fa6237610944479e339b0aa104fa44ef4533 /ext/sqlite/sqlite.c
parent641bb46969b9684ce5b8333a7202daed8697bdc7 (diff)
downloadphp-git-e658842761f3d2443ca547379e054c95ca308378.tar.gz
fix #35197 (Destructor is not called) and similar issues in other extensions
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r--ext/sqlite/sqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c
index 427819c147..5ecb0263e8 100644
--- a/ext/sqlite/sqlite.c
+++ b/ext/sqlite/sqlite.c
@@ -831,7 +831,7 @@ static void sqlite_object_new(zend_class_entry *class_type, zend_object_handlers
zend_hash_init(intern->std.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
- retval->handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) sqlite_object_free_storage, NULL TSRMLS_CC);
+ retval->handle = zend_objects_store_put(intern, (zend_objects_store_dtor_t)zend_objects_destroy_object, (zend_objects_free_object_storage_t) sqlite_object_free_storage, NULL TSRMLS_CC);
retval->handlers = handlers;
}