diff options
author | Zeev Suraski <zeev@php.net> | 1999-07-09 17:24:47 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-07-09 17:24:47 +0000 |
commit | 81d901b14dd87285977ba7947a0268adb6519089 (patch) | |
tree | a94bc7f17920fd62d2de5fccd984bfba388d5475 /Zend/zend_compile.h | |
parent | db1e0bc8201a1f6667094205dc14b3af248ddbd1 (diff) | |
download | php-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.h | 7 |
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); |