From: Marcus Boerger Date: Sun, 6 Mar 2005 21:40:01 +0000 (+0000) Subject: - Bugfix #28840 __destruct of a class that extends mysqli not called X-Git-Tag: RELEASE_0_3~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5830e46a84365b88977e1341b7230f9924ef24a5;p=php - Bugfix #28840 __destruct of a class that extends mysqli not called --- 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;