summaryrefslogtreecommitdiff
path: root/Zend/zend_objects.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2002-01-25 12:55:03 +0000
committerAndi Gutmans <andi@php.net>2002-01-25 12:55:03 +0000
commit7309a6ed21b85771e478d0513dc13dfadceeae16 (patch)
tree19e8d6de785d10b7b820005964cce05e5f4b592a /Zend/zend_objects.h
parent96a9eba020f956e605d52a2a99e3975c7e9ae0da (diff)
downloadphp-git-7309a6ed21b85771e478d0513dc13dfadceeae16.tar.gz
- First destructor hell fix. There was a situation where an object's
- destructor could be run after its class was already dead. Right now - object destructors is the first thing whic happens during shutdown in - order to prevent this problem. It's very likely that destructors will - cause more grief and we'll have to outline exactly when you should use - them and what kind of logic you're allowed to do inside of them. - This bug was reported by sebastian.
Diffstat (limited to 'Zend/zend_objects.h')
-rw-r--r--Zend/zend_objects.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_objects.h b/Zend/zend_objects.h
index b649163007..f068afa8f7 100644
--- a/Zend/zend_objects.h
+++ b/Zend/zend_objects.h
@@ -25,6 +25,7 @@ typedef struct _zend_objects {
} zend_objects;
void zend_objects_init(zend_objects *objects, zend_uint init_size);
+void zend_objects_call_destructors(zend_objects *objects TSRMLS_DC);
void zend_objects_destroy(zend_objects *objects);
zend_object_value zend_objects_new(zend_object **object, zend_class_entry *class_type);
zend_object *zend_objects_get_address(zend_object_handle handle);