diff options
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r-- | Zend/zend_opcode.c | 8 |
1 files changed, 3 insertions, 5 deletions
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; } |