From 62114c18068610dc02b7a28e74d3d2957e3315fd Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 17 Jan 2000 17:33:37 +0000 Subject: Destructors no longer return ints, the low level problem it was intended to solve is long gone now... --- Zend/zend_opcode.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Zend/zend_opcode.c') diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index 3f40aad847..4ca0b43eed 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -105,7 +105,7 @@ void init_op_array(zend_op_array *op_array, int initial_ops_size) } -ZEND_API int destroy_zend_function(zend_function *function) +ZEND_API void destroy_zend_function(zend_function *function) { switch (function->type) { case ZEND_USER_FUNCTION: @@ -115,14 +115,13 @@ ZEND_API int destroy_zend_function(zend_function *function) /* do nothing */ break; } - return 1; } -ZEND_API int destroy_zend_class(zend_class_entry *ce) +ZEND_API void destroy_zend_class(zend_class_entry *ce) { if (--(*ce->refcount)>0) { - return 1; + return; } switch (ce->type) { case ZEND_USER_CLASS: @@ -138,7 +137,6 @@ ZEND_API int destroy_zend_class(zend_class_entry *ce) zend_hash_destroy(&ce->default_properties); break; } - return 1; } -- cgit v1.2.1