From 2eccd95ca422daa62049cece772026956ac212bb Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Sat, 3 Nov 2001 12:19:52 +0000 Subject: [PATCH] - Add some initializations --- Zend/zend.c | 1 + Zend/zend_API.h | 2 ++ Zend/zend_compile.c | 2 ++ 3 files changed, 5 insertions(+) diff --git a/Zend/zend.c b/Zend/zend.c index 4ae7bc0ead..a1563cd0fa 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -252,6 +252,7 @@ static void register_standard_class(void) zend_standard_class_def.parent = NULL; zend_hash_init_ex(&zend_standard_class_def.default_properties, 0, NULL, ZVAL_PTR_DTOR, 1, 0); zend_hash_init_ex(&zend_standard_class_def.function_table, 0, NULL, ZEND_FUNCTION_DTOR, 1, 0); + zend_standard_class_def.constructor = NULL; zend_standard_class_def.handle_function_call = NULL; zend_standard_class_def.handle_property_get = NULL; zend_standard_class_def.handle_property_set = NULL; diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 3da2b158e5..7fe243eafa 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -87,6 +87,7 @@ class_container.name = strdup(class_name); \ class_container.name_length = sizeof(class_name)-1; \ class_container.builtin_functions = functions; \ + class_container.constructor = NULL; \ class_container.handle_function_call = NULL; \ class_container.handle_property_get = NULL; \ class_container.handle_property_set = NULL; \ @@ -97,6 +98,7 @@ class_container.name = strdup(class_name); \ class_container.name_length = sizeof(class_name)-1; \ class_container.builtin_functions = functions; \ + class_container.constructor = NULL; \ class_container.handle_function_call = handle_fcall; \ class_container.handle_property_get = handle_propget; \ class_container.handle_property_set = handle_propset; \ diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 9d31e099cc..2185ed4fb7 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1683,6 +1683,8 @@ void zend_do_begin_class_declaration(znode *class_token, znode *class_name, znod zend_hash_init(&new_class_entry.class_table, 10, NULL, ZEND_CLASS_DTOR, 0); zend_hash_init(&new_class_entry.default_properties, 10, NULL, ZVAL_PTR_DTOR, 0); + new_class_entry.constructor = NULL; + new_class_entry.handle_function_call = NULL; new_class_entry.handle_property_set = NULL; new_class_entry.handle_property_get = NULL; -- 2.50.1