]> granicus.if.org Git - php/commitdiff
- Fix crash reported by Sebastian when destructor function causes a fatal
authorAndi Gutmans <andi@php.net>
Fri, 1 Mar 2002 10:26:10 +0000 (10:26 +0000)
committerAndi Gutmans <andi@php.net>
Fri, 1 Mar 2002 10:26:10 +0000 (10:26 +0000)
- error. I hope this does it and we don't find any other problems.

Zend/zend_objects.c

index ef71a014a3b1ec1ca8fc7e1b195b68b3082e8e40..dd5c25dec2703cae2b0fb5fa72039e5df49f6cb6 100644 (file)
@@ -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);
+               }
        }
 }