diff options
author | Andi Gutmans <andi@php.net> | 2002-03-01 10:26:10 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2002-03-01 10:26:10 +0000 |
commit | 2505f6b400cac1e66a159af02881e5a52e6723e4 (patch) | |
tree | bacadd69fc22c561763fe12f8d05bfc7f70fe004 /Zend/zend_objects.c | |
parent | 3735282e8bafd05128d64281072e0f27798548b7 (diff) | |
download | php-git-2505f6b400cac1e66a159af02881e5a52e6723e4.tar.gz |
- Fix crash reported by Sebastian when destructor function causes a fatal
- error. I hope this does it and we don't find any other problems.
Diffstat (limited to 'Zend/zend_objects.c')
-rw-r--r-- | Zend/zend_objects.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_objects.c b/Zend/zend_objects.c index ef71a014a3..dd5c25dec2 100644 --- a/Zend/zend_objects.c +++ b/Zend/zend_objects.c @@ -46,7 +46,9 @@ static inline void zend_objects_call_destructor(zend_object *object, zend_object zend_hash_destroy(&symbol_table); zval_ptr_dtor(&obj); zval_ptr_dtor(&destructor_func_name); - zval_ptr_dtor(&retval_ptr); + if (retval_ptr) { + zval_ptr_dtor(&retval_ptr); + } } } |