cvs: ZendEngine2 / zend_execute_API.c zend_iterators.c zend_objects.c zend_objects_API.c zend_objects_API.h zend_reflection_api.c
| From: | Zeev Suraski | Date: | Wed, 04 Feb 2004 09:56:21 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute_API.c zend_iterators.c zend_objects.c zend_objects_API.c zend_objects_API.h zend_reflection_api.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2312@lists.php.net to get a copy of this message | ||
zeev Wed Feb 4 04:56:21 2004 EDT
Modified files:
/ZendEngine2 zend_execute_API.c zend_iterators.c zend_objects.c
zend_objects_API.c zend_objects_API.h
zend_reflection_api.c
Log:
Change destructor implementation (details will follow on internals@)
http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.258&r2=1.259&ty=u Index: ZendEngine2/zend_execute_API.c diff -u ZendEngine2/zend_execute_API.c:1.258 ZendEngine2/zend_execute_API.c:1.259 --- ZendEngine2/zend_execute_API.c:1.258 Tue Feb 3 10:37:37 2004 +++ ZendEngine2/zend_execute_API.c Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute_API.c,v 1.258 2004/02/03 15:37:37 zeev Exp $ */ +/* $Id: zend_execute_API.c,v 1.259 2004/02/04 09:56:20 zeev Exp $ */ #include <stdio.h> #include <signal.h> @@ -208,7 +208,7 @@ } */ zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_deactivator TSRMLS_CC); - + zend_objects_store_call_destructors(&EG(objects_store) TSRMLS_CC); zend_hash_graceful_reverse_destroy(&EG(symbol_table)); } zend_end_try(); @@ -271,6 +271,7 @@ FREE_HASHTABLE(*EG(symtable_cache_ptr)); EG(symtable_cache_ptr)--; } + zend_objects_store_free_object_storage(&EG(objects_store) TSRMLS_CC); } zend_end_try(); zend_try { http://cvs.php.net/diff.php/ZendEngine2/zend_iterators.c?r1=1.7&r2=1.8&ty=u Index: ZendEngine2/zend_iterators.c diff -u ZendEngine2/zend_iterators.c:1.7 ZendEngine2/zend_iterators.c:1.8 --- ZendEngine2/zend_iterators.c:1.7 Sun Jan 25 08:32:02 2004 +++ ZendEngine2/zend_iterators.c Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_iterators.c,v 1.7 2004/01/25 13:32:02 helly Exp $ */ +/* $Id: zend_iterators.c,v 1.8 2004/02/04 09:56:20 zeev Exp $ */ #include "zend.h" #include "zend_API.h" @@ -54,7 +54,7 @@ zend_iterator_class_entry.name = "__iterator_wrapper"; } -static void iter_wrapper_dtor(void *object, zend_object_handle handle TSRMLS_DC) +static void iter_wrapper_free_storage(void *object TSRMLS_DC) { zend_object_iterator *iter = (zend_object_iterator*)object; iter->funcs->dtor(iter TSRMLS_CC); @@ -66,7 +66,7 @@ MAKE_STD_ZVAL(wrapped); Z_TYPE_P(wrapped) = IS_OBJECT; - wrapped->value.obj.handle = zend_objects_store_put(iter, iter_wrapper_dtor, NULL TSRMLS_CC); + wrapped->value.obj.handle = zend_objects_store_put(iter, NULL, iter_wrapper_free_storage, NULL TSRMLS_CC); wrapped->value.obj.handlers = &iterator_object_handlers; return wrapped; http://cvs.php.net/diff.php/ZendEngine2/zend_objects.c?r1=1.43&r2=1.44&ty=u Index: ZendEngine2/zend_objects.c diff -u ZendEngine2/zend_objects.c:1.43 ZendEngine2/zend_objects.c:1.44 --- ZendEngine2/zend_objects.c:1.43 Tue Feb 3 16:15:08 2004 +++ ZendEngine2/zend_objects.c Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_objects.c,v 1.43 2004/02/03 21:15:08 helly Exp $ */ +/* $Id: zend_objects.c,v 1.44 2004/02/04 09:56:20 zeev Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -78,6 +78,10 @@ zend_call_method_with_0_params(&obj, object->ce, NULL, "__destruct", NULL); } +} + +ZEND_API void zend_objects_free_object_storage(zend_object *object TSRMLS_DC) +{ zend_nuke_object(object TSRMLS_CC); } @@ -87,7 +91,7 @@ *object = emalloc(sizeof(zend_object)); (*object)->ce = class_type; - retval.handle = zend_objects_store_put(*object, (zend_objects_store_dtor_t) zend_objects_destroy_object, NULL TSRMLS_CC); + retval.handle = zend_objects_store_put(*object, (zend_objects_store_dtor_t) zend_objects_destroy_object, (zend_objects_free_object_storage_t) zend_objects_free_object_storage, NULL TSRMLS_CC); retval.handlers = &std_object_handlers; (*object)->in_get = 0; (*object)->in_set = 0; http://cvs.php.net/diff.php/ZendEngine2/zend_objects_API.c?r1=1.25&r2=1.26&ty=u Index: ZendEngine2/zend_objects_API.c diff -u ZendEngine2/zend_objects_API.c:1.25 ZendEngine2/zend_objects_API.c:1.26 --- ZendEngine2/zend_objects_API.c:1.25 Tue Feb 3 10:49:15 2004 +++ ZendEngine2/zend_objects_API.c Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_objects_API.c,v 1.25 2004/02/03 15:49:15 zeev Exp $ */ +/* $Id: zend_objects_API.c,v 1.26 2004/02/04 09:56:20 zeev Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -54,14 +54,22 @@ } -ZEND_API void zend_objects_store_nuke_objects() +ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects TSRMLS_DC) { + zend_uint i = 1; + + for (i = 1; i < objects->top ; i++) { + struct _store_object *obj = &objects->object_buckets[i].bucket.obj; + if (obj->free_storage) { + obj->free_storage(obj->object, i TSRMLS_CC); + } + } } /* Store objects API */ -ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_store_clone_t clone TSRMLS_DC) +ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_free_object_storage_t free_storage, zend_objects_store_clone_t clone TSRMLS_DC) { zend_object_handle handle; struct _store_object *obj; @@ -82,6 +90,7 @@ obj->refcount = 1; obj->object = object; obj->dtor = dtor; + obj->free_storage = free_storage; obj->clone = clone; #if ZEND_DEBUG_OBJECTS @@ -116,6 +125,7 @@ obj->dtor(obj->object, handle TSRMLS_CC); } if (obj->refcount == 0) { + obj->free_storage(obj->object TSRMLS_CC); ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(); } } @@ -145,7 +155,7 @@ obj->clone(obj->object, &new_object TSRMLS_CC); - retval.handle = zend_objects_store_put(new_object, obj->dtor, obj->clone TSRMLS_CC); + retval.handle = zend_objects_store_put(new_object, obj->dtor, obj->free_storage, obj->clone TSRMLS_CC); retval.handlers = Z_OBJ_HT_P(zobject); return retval; @@ -167,7 +177,7 @@ static zend_object_handlers zend_object_proxy_handlers; -ZEND_API void zend_objects_proxy_dtor(zend_proxy_object *object, zend_object_handle handle TSRMLS_DC) +ZEND_API void zend_objects_proxy_free_storage(zend_proxy_object *object TSRMLS_DC) { zval_ptr_dtor(&object->object); zval_ptr_dtor(&object->property); @@ -195,7 +205,7 @@ MAKE_STD_ZVAL(retval); retval->type = IS_OBJECT; - Z_OBJ_HANDLE_P(retval) = zend_objects_store_put(pobj, (zend_objects_store_dtor_t)zend_objects_proxy_dtor, (zend_objects_store_clone_t)zend_objects_proxy_clone TSRMLS_CC); + Z_OBJ_HANDLE_P(retval) = zend_objects_store_put(pobj, NULL, (zend_objects_store_dtor_t) zend_objects_proxy_free_storage, (zend_objects_store_clone_t) zend_objects_proxy_clone TSRMLS_CC); Z_OBJ_HT_P(retval) = &zend_object_proxy_handlers; pretval = emalloc(sizeof(zval *)); *pretval = retval; http://cvs.php.net/diff.php/ZendEngine2/zend_objects_API.h?r1=1.8&r2=1.9&ty=u Index: ZendEngine2/zend_objects_API.h diff -u ZendEngine2/zend_objects_API.h:1.8 ZendEngine2/zend_objects_API.h:1.9 --- ZendEngine2/zend_objects_API.h:1.8 Tue Feb 3 10:49:15 2004 +++ ZendEngine2/zend_objects_API.h Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_objects_API.h,v 1.8 2004/02/03 15:49:15 zeev Exp $ */ +/* $Id: zend_objects_API.h,v 1.9 2004/02/04 09:56:20 zeev Exp $ */ #ifndef ZEND_OBJECTS_API_H #define ZEND_OBJECTS_API_H @@ -25,6 +25,8 @@ #include "zend.h" typedef void (*zend_objects_store_dtor_t)(void *object, zend_object_handle handle TSRMLS_DC); +typedef void (*zend_objects_free_object_storage_t)(zend_object *object TSRMLS_DC); + typedef void (*zend_objects_store_clone_t)(void *object, void **object_clone TSRMLS_DC); typedef struct _zend_object_store_bucket { @@ -33,6 +35,7 @@ struct _store_object { void *object; zend_objects_store_dtor_t dtor; + zend_objects_free_object_storage_t free_storage; zend_objects_store_clone_t clone; zend_uint refcount; } obj; @@ -55,14 +58,15 @@ ZEND_API void zend_objects_store_destroy(zend_objects_store *objects); /* Store API functions */ -ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_store_clone_t clone TSRMLS_DC); +ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_free_object_storage_t storage, zend_objects_store_clone_t clone TSRMLS_DC); ZEND_API void zend_objects_store_add_ref(zval *object TSRMLS_DC); ZEND_API void zend_objects_store_del_ref(zval *object TSRMLS_DC); ZEND_API void zend_objects_store_delete_obj(zval *object TSRMLS_DC); ZEND_API zend_object_value zend_objects_store_clone_obj(zval *object TSRMLS_DC); ZEND_API void *zend_object_store_get_object(zval *object TSRMLS_DC); - +ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects TSRMLS_DC); + #define ZEND_OBJECTS_STORE_HANDLERS zend_objects_store_add_ref, zend_objects_store_del_ref, zend_objects_store_clone_obj ZEND_API zval **zend_object_create_proxy(zval *object, zval *member TSRMLS_DC); http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.83&r2=1.84&ty=u Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.83 ZendEngine2/zend_reflection_api.c:1.84 --- ZendEngine2/zend_reflection_api.c:1.83 Sat Jan 31 07:20:20 2004 +++ ZendEngine2/zend_reflection_api.c Wed Feb 4 04:56:20 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.83 2004/01/31 12:20:20 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.84 2004/02/04 09:56:20 zeev Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_default_classes.h" @@ -223,7 +223,7 @@ 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, reflection_objects_clone TSRMLS_CC); + retval.handle = zend_objects_store_put(intern, reflection_objects_dtor, NULL, reflection_objects_clone TSRMLS_CC); retval.handlers = &reflection_object_handlers; return retval; }
http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.258&r2=1.259&ty=u Index: ZendEngine2/zend_execute_API.c diff -u ZendEngine2/zend_execute_API.c:1.258 ZendEngine2/zend_execute_API.c:1.259 --- ZendEngine2/zend_execute_API.c:1.258 Tue Feb 3 10:37:37 2004 +++ ZendEngine2/zend_execute_API.c Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute_API.c,v 1.258 2004/02/03 15:37:37 zeev Exp $ */ +/* $Id: zend_execute_API.c,v 1.259 2004/02/04 09:56:20 zeev Exp $ */ #include <stdio.h> #include <signal.h> @@ -208,7 +208,7 @@ } */ zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_deactivator TSRMLS_CC); - + zend_objects_store_call_destructors(&EG(objects_store) TSRMLS_CC); zend_hash_graceful_reverse_destroy(&EG(symbol_table)); } zend_end_try(); @@ -271,6 +271,7 @@ FREE_HASHTABLE(*EG(symtable_cache_ptr)); EG(symtable_cache_ptr)--; } + zend_objects_store_free_object_storage(&EG(objects_store) TSRMLS_CC); } zend_end_try(); zend_try { http://cvs.php.net/diff.php/ZendEngine2/zend_iterators.c?r1=1.7&r2=1.8&ty=u Index: ZendEngine2/zend_iterators.c diff -u ZendEngine2/zend_iterators.c:1.7 ZendEngine2/zend_iterators.c:1.8 --- ZendEngine2/zend_iterators.c:1.7 Sun Jan 25 08:32:02 2004 +++ ZendEngine2/zend_iterators.c Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_iterators.c,v 1.7 2004/01/25 13:32:02 helly Exp $ */ +/* $Id: zend_iterators.c,v 1.8 2004/02/04 09:56:20 zeev Exp $ */ #include "zend.h" #include "zend_API.h" @@ -54,7 +54,7 @@ zend_iterator_class_entry.name = "__iterator_wrapper"; } -static void iter_wrapper_dtor(void *object, zend_object_handle handle TSRMLS_DC) +static void iter_wrapper_free_storage(void *object TSRMLS_DC) { zend_object_iterator *iter = (zend_object_iterator*)object; iter->funcs->dtor(iter TSRMLS_CC); @@ -66,7 +66,7 @@ MAKE_STD_ZVAL(wrapped); Z_TYPE_P(wrapped) = IS_OBJECT; - wrapped->value.obj.handle = zend_objects_store_put(iter, iter_wrapper_dtor, NULL TSRMLS_CC); + wrapped->value.obj.handle = zend_objects_store_put(iter, NULL, iter_wrapper_free_storage, NULL TSRMLS_CC); wrapped->value.obj.handlers = &iterator_object_handlers; return wrapped; http://cvs.php.net/diff.php/ZendEngine2/zend_objects.c?r1=1.43&r2=1.44&ty=u Index: ZendEngine2/zend_objects.c diff -u ZendEngine2/zend_objects.c:1.43 ZendEngine2/zend_objects.c:1.44 --- ZendEngine2/zend_objects.c:1.43 Tue Feb 3 16:15:08 2004 +++ ZendEngine2/zend_objects.c Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_objects.c,v 1.43 2004/02/03 21:15:08 helly Exp $ */ +/* $Id: zend_objects.c,v 1.44 2004/02/04 09:56:20 zeev Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -78,6 +78,10 @@ zend_call_method_with_0_params(&obj, object->ce, NULL, "__destruct", NULL); } +} + +ZEND_API void zend_objects_free_object_storage(zend_object *object TSRMLS_DC) +{ zend_nuke_object(object TSRMLS_CC); } @@ -87,7 +91,7 @@ *object = emalloc(sizeof(zend_object)); (*object)->ce = class_type; - retval.handle = zend_objects_store_put(*object, (zend_objects_store_dtor_t) zend_objects_destroy_object, NULL TSRMLS_CC); + retval.handle = zend_objects_store_put(*object, (zend_objects_store_dtor_t) zend_objects_destroy_object, (zend_objects_free_object_storage_t) zend_objects_free_object_storage, NULL TSRMLS_CC); retval.handlers = &std_object_handlers; (*object)->in_get = 0; (*object)->in_set = 0; http://cvs.php.net/diff.php/ZendEngine2/zend_objects_API.c?r1=1.25&r2=1.26&ty=u Index: ZendEngine2/zend_objects_API.c diff -u ZendEngine2/zend_objects_API.c:1.25 ZendEngine2/zend_objects_API.c:1.26 --- ZendEngine2/zend_objects_API.c:1.25 Tue Feb 3 10:49:15 2004 +++ ZendEngine2/zend_objects_API.c Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_objects_API.c,v 1.25 2004/02/03 15:49:15 zeev Exp $ */ +/* $Id: zend_objects_API.c,v 1.26 2004/02/04 09:56:20 zeev Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -54,14 +54,22 @@ } -ZEND_API void zend_objects_store_nuke_objects() +ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects TSRMLS_DC) { + zend_uint i = 1; + + for (i = 1; i < objects->top ; i++) { + struct _store_object *obj = &objects->object_buckets[i].bucket.obj; + if (obj->free_storage) { + obj->free_storage(obj->object, i TSRMLS_CC); + } + } } /* Store objects API */ -ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_store_clone_t clone TSRMLS_DC) +ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_free_object_storage_t free_storage, zend_objects_store_clone_t clone TSRMLS_DC) { zend_object_handle handle; struct _store_object *obj; @@ -82,6 +90,7 @@ obj->refcount = 1; obj->object = object; obj->dtor = dtor; + obj->free_storage = free_storage; obj->clone = clone; #if ZEND_DEBUG_OBJECTS @@ -116,6 +125,7 @@ obj->dtor(obj->object, handle TSRMLS_CC); } if (obj->refcount == 0) { + obj->free_storage(obj->object TSRMLS_CC); ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(); } } @@ -145,7 +155,7 @@ obj->clone(obj->object, &new_object TSRMLS_CC); - retval.handle = zend_objects_store_put(new_object, obj->dtor, obj->clone TSRMLS_CC); + retval.handle = zend_objects_store_put(new_object, obj->dtor, obj->free_storage, obj->clone TSRMLS_CC); retval.handlers = Z_OBJ_HT_P(zobject); return retval; @@ -167,7 +177,7 @@ static zend_object_handlers zend_object_proxy_handlers; -ZEND_API void zend_objects_proxy_dtor(zend_proxy_object *object, zend_object_handle handle TSRMLS_DC) +ZEND_API void zend_objects_proxy_free_storage(zend_proxy_object *object TSRMLS_DC) { zval_ptr_dtor(&object->object); zval_ptr_dtor(&object->property); @@ -195,7 +205,7 @@ MAKE_STD_ZVAL(retval); retval->type = IS_OBJECT; - Z_OBJ_HANDLE_P(retval) = zend_objects_store_put(pobj, (zend_objects_store_dtor_t)zend_objects_proxy_dtor, (zend_objects_store_clone_t)zend_objects_proxy_clone TSRMLS_CC); + Z_OBJ_HANDLE_P(retval) = zend_objects_store_put(pobj, NULL, (zend_objects_store_dtor_t) zend_objects_proxy_free_storage, (zend_objects_store_clone_t) zend_objects_proxy_clone TSRMLS_CC); Z_OBJ_HT_P(retval) = &zend_object_proxy_handlers; pretval = emalloc(sizeof(zval *)); *pretval = retval; http://cvs.php.net/diff.php/ZendEngine2/zend_objects_API.h?r1=1.8&r2=1.9&ty=u Index: ZendEngine2/zend_objects_API.h diff -u ZendEngine2/zend_objects_API.h:1.8 ZendEngine2/zend_objects_API.h:1.9 --- ZendEngine2/zend_objects_API.h:1.8 Tue Feb 3 10:49:15 2004 +++ ZendEngine2/zend_objects_API.h Wed Feb 4 04:56:20 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_objects_API.h,v 1.8 2004/02/03 15:49:15 zeev Exp $ */ +/* $Id: zend_objects_API.h,v 1.9 2004/02/04 09:56:20 zeev Exp $ */ #ifndef ZEND_OBJECTS_API_H #define ZEND_OBJECTS_API_H @@ -25,6 +25,8 @@ #include "zend.h" typedef void (*zend_objects_store_dtor_t)(void *object, zend_object_handle handle TSRMLS_DC); +typedef void (*zend_objects_free_object_storage_t)(zend_object *object TSRMLS_DC); + typedef void (*zend_objects_store_clone_t)(void *object, void **object_clone TSRMLS_DC); typedef struct _zend_object_store_bucket { @@ -33,6 +35,7 @@ struct _store_object { void *object; zend_objects_store_dtor_t dtor; + zend_objects_free_object_storage_t free_storage; zend_objects_store_clone_t clone; zend_uint refcount; } obj; @@ -55,14 +58,15 @@ ZEND_API void zend_objects_store_destroy(zend_objects_store *objects); /* Store API functions */ -ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_store_clone_t clone TSRMLS_DC); +ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_free_object_storage_t storage, zend_objects_store_clone_t clone TSRMLS_DC); ZEND_API void zend_objects_store_add_ref(zval *object TSRMLS_DC); ZEND_API void zend_objects_store_del_ref(zval *object TSRMLS_DC); ZEND_API void zend_objects_store_delete_obj(zval *object TSRMLS_DC); ZEND_API zend_object_value zend_objects_store_clone_obj(zval *object TSRMLS_DC); ZEND_API void *zend_object_store_get_object(zval *object TSRMLS_DC); - +ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects TSRMLS_DC); + #define ZEND_OBJECTS_STORE_HANDLERS zend_objects_store_add_ref, zend_objects_store_del_ref, zend_objects_store_clone_obj ZEND_API zval **zend_object_create_proxy(zval *object, zval *member TSRMLS_DC); http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.83&r2=1.84&ty=u Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.83 ZendEngine2/zend_reflection_api.c:1.84 --- ZendEngine2/zend_reflection_api.c:1.83 Sat Jan 31 07:20:20 2004 +++ ZendEngine2/zend_reflection_api.c Wed Feb 4 04:56:20 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.83 2004/01/31 12:20:20 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.84 2004/02/04 09:56:20 zeev Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_default_classes.h" @@ -223,7 +223,7 @@ 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, reflection_objects_clone TSRMLS_CC); + retval.handle = zend_objects_store_put(intern, reflection_objects_dtor, NULL, reflection_objects_clone TSRMLS_CC); retval.handlers = &reflection_object_handlers; return retval; }