diff options
author | Andi Gutmans <andi@php.net> | 2002-01-25 12:55:03 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2002-01-25 12:55:03 +0000 |
commit | 7309a6ed21b85771e478d0513dc13dfadceeae16 (patch) | |
tree | 19e8d6de785d10b7b820005964cce05e5f4b592a /Zend/zend_execute_API.c | |
parent | 96a9eba020f956e605d52a2a99e3975c7e9ae0da (diff) | |
download | php-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_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 12d28b1789..e116a5ca03 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -181,6 +181,8 @@ void init_executor(TSRMLS_D) void shutdown_executor(TSRMLS_D) { zend_try { + zend_objects_call_destructors(&EG(objects) TSRMLS_CC); + zend_ptr_stack_destroy(&EG(arg_types_stack)); while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { |