From: Michael Wallner Date: Tue, 22 Feb 2005 12:11:10 +0000 (+0000) Subject: * no need to wrap around zend_objects_destroy_object() X-Git-Tag: RELEASE_0_5_1~4 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=3c7aaecb2e0ecc1e24cdf3347178f382c9c71f71 * no need to wrap around zend_objects_destroy_object() --- diff --git a/http.c b/http.c index 6e798f5..a26e2d1 100644 --- a/http.c +++ b/http.c @@ -755,12 +755,6 @@ static inline void _httpi_request_declare_default_properties(zend_class_entry *c DCL_PROP(PROTECTED, string, postData, ""); } -#define httpi_request_destroy_object _httpi_request_destroy_object -void _httpi_request_destroy_object(void *object, zend_object_handle handle TSRMLS_DC) -{ - zend_objects_destroy_object(object, handle TSRMLS_CC); -} - #define httpi_request_free_object _httpi_request_free_object void _httpi_request_free_object(zend_object /* void */ *object TSRMLS_DC) { @@ -791,7 +785,7 @@ zend_object_value _httpi_request_new_object(zend_class_entry *ce TSRMLS_DC) zend_hash_init(OBJ_PROP(o), 0, NULL, ZVAL_PTR_DTOR, 0); zend_hash_copy(OBJ_PROP(o), &ce->default_properties, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *)); - ov.handle = zend_objects_store_put(o, httpi_request_destroy_object, httpi_request_free_object, NULL TSRMLS_CC); + ov.handle = zend_objects_store_put(o, zend_objects_destroy_object, httpi_request_free_object, NULL TSRMLS_CC); ov.handlers = &httpi_request_object_handlers; return ov;