summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-01-17 17:33:37 +0000
committerZeev Suraski <zeev@php.net>2000-01-17 17:33:37 +0000
commit62114c18068610dc02b7a28e74d3d2957e3315fd (patch)
tree53dc05ad4216381535f5985c6f615a432785b962 /Zend/zend_opcode.c
parentec386cc9fde380aaa4af823e75950365d8bb98da (diff)
downloadphp-git-62114c18068610dc02b7a28e74d3d2957e3315fd.tar.gz
Destructors no longer return ints, the low level problem it was intended to solve is long gone now...
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r--Zend/zend_opcode.c8
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;
}