cvs: ZendEngine2 / zend_reflection_api.c
| From: | Marcus Boerger | Date: | Wed, 04 Feb 2004 22:19:00 +0000 |
| Subject: | cvs: ZendEngine2 / zend_reflection_api.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2325@lists.php.net to get a copy of this message | ||
helly Wed Feb 4 17:19:00 2004 EDT
Modified files:
/ZendEngine2 zend_reflection_api.c
Log:
Fix reflection
http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.84&r2=1.85&ty=u
Index: ZendEngine2/zend_reflection_api.c
diff -u ZendEngine2/zend_reflection_api.c:1.84 ZendEngine2/zend_reflection_api.c:1.85
--- ZendEngine2/zend_reflection_api.c:1.84 Wed Feb 4 04:56:20 2004
+++ ZendEngine2/zend_reflection_api.c Wed Feb 4 17:19:00 2004
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_reflection_api.c,v 1.84 2004/02/04 09:56:20 zeev Exp $ */
+/* $Id: zend_reflection_api.c,v 1.85 2004/02/04 22:19:00 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
#include "zend_default_classes.h"
@@ -178,7 +178,7 @@
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 @@
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 @@
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;
}