summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-03-06 21:40:01 +0000
committerMarcus Boerger <helly@php.net>2005-03-06 21:40:01 +0000
commit5830e46a84365b88977e1341b7230f9924ef24a5 (patch)
treee546184d972ffd16e8d84abd9d7a57a6e24bf24d /ext/mysqli/mysqli.c
parent96d7eebce83ab8893e82426335418fc7174e57a7 (diff)
downloadphp-git-5830e46a84365b88977e1341b7230f9924ef24a5.tar.gz
- Bugfix #28840 __destruct of a class that extends mysqli not called
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index aa94fb2a70..03700e8d43 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -349,7 +349,7 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry *class_
zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref,
(void *) &tmp, sizeof(zval *));
- retval.handle = zend_objects_store_put(intern, NULL, mysqli_objects_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) mysqli_objects_free_storage, NULL TSRMLS_CC);
retval.handlers = &mysqli_object_handlers;
return retval;