]> granicus.if.org Git - php/commitdiff
Fix reflection
authorMarcus Boerger <helly@php.net>
Wed, 4 Feb 2004 22:19:00 +0000 (22:19 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 4 Feb 2004 22:19:00 +0000 (22:19 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 08ca5e5a5b81afdffa8b47bc23df3941f320fab2..c7c5076e7de001688348e7caf7c3402a4f3ed2d1 100644 (file)
@@ -178,7 +178,7 @@ static void reflection_register_implement(zend_class_entry *class_entry, zend_cl
        class_entry->interfaces[num_interfaces - 1] = interface_entry;
 }
 
-static void reflection_objects_dtor(void *object, zend_object_handle handle TSRMLS_DC)
+static void reflection_free_objects_storage(zend_object *object TSRMLS_DC)
 {
        reflection_object *intern = (reflection_object *) object;
 
@@ -188,7 +188,7 @@ static void reflection_objects_dtor(void *object, zend_object_handle handle TSRM
        if (intern->obj) {
                zval_ptr_dtor(&intern->obj);
        }
-       zend_objects_destroy_object(object, handle TSRMLS_CC);
+       zend_objects_free_object_storage(object TSRMLS_CC);
 }
 
 static void reflection_objects_clone(void *object, void **object_clone TSRMLS_DC)
@@ -223,7 +223,7 @@ static zend_object_value reflection_objects_new(zend_class_entry *class_type TSR
 
        ALLOC_HASHTABLE(intern->zo.properties);
        zend_hash_init(intern->zo.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
-       retval.handle = zend_objects_store_put(intern, reflection_objects_dtor, NULL, reflection_objects_clone TSRMLS_CC);
+       retval.handle = zend_objects_store_put(intern, NULL, reflection_free_objects_storage, reflection_objects_clone TSRMLS_CC);
        retval.handlers = &reflection_object_handlers;
        return retval;
 }
index 08ca5e5a5b81afdffa8b47bc23df3941f320fab2..c7c5076e7de001688348e7caf7c3402a4f3ed2d1 100644 (file)
@@ -178,7 +178,7 @@ static void reflection_register_implement(zend_class_entry *class_entry, zend_cl
        class_entry->interfaces[num_interfaces - 1] = interface_entry;
 }
 
-static void reflection_objects_dtor(void *object, zend_object_handle handle TSRMLS_DC)
+static void reflection_free_objects_storage(zend_object *object TSRMLS_DC)
 {
        reflection_object *intern = (reflection_object *) object;
 
@@ -188,7 +188,7 @@ static void reflection_objects_dtor(void *object, zend_object_handle handle TSRM
        if (intern->obj) {
                zval_ptr_dtor(&intern->obj);
        }
-       zend_objects_destroy_object(object, handle TSRMLS_CC);
+       zend_objects_free_object_storage(object TSRMLS_CC);
 }
 
 static void reflection_objects_clone(void *object, void **object_clone TSRMLS_DC)
@@ -223,7 +223,7 @@ static zend_object_value reflection_objects_new(zend_class_entry *class_type TSR
 
        ALLOC_HASHTABLE(intern->zo.properties);
        zend_hash_init(intern->zo.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
-       retval.handle = zend_objects_store_put(intern, reflection_objects_dtor, NULL, reflection_objects_clone TSRMLS_CC);
+       retval.handle = zend_objects_store_put(intern, NULL, reflection_free_objects_storage, reflection_objects_clone TSRMLS_CC);
        retval.handlers = &reflection_object_handlers;
        return retval;
 }