From: Marcus Boerger Date: Tue, 22 Feb 2005 11:43:05 +0000 (+0000) Subject: - Force calling of dtors unless otherwise specified (fixes several __destruct bugs) X-Git-Tag: RELEASE_0_3~261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93e13aff053eb8266729a78efeb8240e49514566;p=php - Force calling of dtors unless otherwise specified (fixes several __destruct bugs) --- diff --git a/Zend/zend_objects_API.c b/Zend/zend_objects_API.c index 6aa2d80b56..f850ac7764 100644 --- a/Zend/zend_objects_API.c +++ b/Zend/zend_objects_API.c @@ -110,7 +110,7 @@ ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_st obj->refcount = 1; obj->object = object; - obj->dtor = dtor; + obj->dtor = dtor ? dtor : zend_objects_destroy_object; obj->free_storage = free_storage; obj->clone = clone;