summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-07-09 17:24:47 +0000
committerZeev Suraski <zeev@php.net>1999-07-09 17:24:47 +0000
commit81d901b14dd87285977ba7947a0268adb6519089 (patch)
treea94bc7f17920fd62d2de5fccd984bfba388d5475 /Zend/zend_compile.h
parentdb1e0bc8201a1f6667094205dc14b3af248ddbd1 (diff)
downloadphp-git-81d901b14dd87285977ba7947a0268adb6519089.tar.gz
Step 1 in nuking the garbage collector:
- Change the hash destructor to return int - Don't kill the bucket on hash_destroy if the destructor returns 0
Diffstat (limited to 'Zend/zend_compile.h')
-rw-r--r--Zend/zend_compile.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index bdbaaafc9a..2568c7662e 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -350,10 +350,13 @@ ZEND_API void zend_close_file_handle(zend_file_handle *file_handle CLS_DC);
ZEND_API void zend_open_file_dtor(void *f);
END_EXTERN_C()
-ZEND_API void destroy_zend_function(zend_function *function);
-ZEND_API void destroy_zend_class(zend_class_entry *ce);
+ZEND_API int destroy_zend_function(zend_function *function);
+ZEND_API int destroy_zend_class(zend_class_entry *ce);
void zend_class_add_ref(zend_class_entry *ce);
+#define ZEND_FUNCTION_DTOR (int (*)(void *)) destroy_zend_function
+#define ZEND_CLASS_DTOR (int (*)(void *)) destroy_zend_class
+
zend_op *get_next_op(zend_op_array *op_array CLS_DC);
int get_next_op_number(zend_op_array *op_array);
int print_class(zend_class_entry *class_entry);