Skip to content
Browse files

- Add some initializations

  • Loading branch information...
1 parent b87194e commit 2eccd95ca422daa62049cece772026956ac212bb @andigutmans andigutmans committed Nov 3, 2001
Showing with 5 additions and 0 deletions.
  1. +1 −0 Zend/zend.c
  2. +2 −0 Zend/zend_API.h
  3. +2 −0 Zend/zend_compile.c
View
1 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;
View
2 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; \
View
2 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;

0 comments on commit 2eccd95

Please sign in to comment.
Something went wrong with that request. Please try again.