]> granicus.if.org Git - php/commitdiff
- Bugfix #28840 __destruct of a class that extends mysqli not called
authorMarcus Boerger <helly@php.net>
Sun, 6 Mar 2005 21:40:01 +0000 (21:40 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 6 Mar 2005 21:40:01 +0000 (21:40 +0000)
ext/mysqli/mysqli.c

index aa94fb2a70883b001a5313274d12eb716f468e91..03700e8d43a6c7eadb6a331cc174ff1397c599f8 100644 (file)
@@ -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;