Fix order of class_entry member initialization (needed for example for DOM)

# You need to completley rebuild PHP after this patch.
This commit is contained in:
Marcus Boerger 2003-12-28 15:18:05 +00:00
parent 05c78af854
commit 15964bb35d
2 changed files with 8 additions and 7 deletions

View file

@ -127,7 +127,9 @@ typedef struct _zend_function_entry {
class_container.__call = handle_fcall; \
class_container.__get = handle_propget; \
class_container.__set = handle_propset; \
class_container.parent = NULL; \
class_container.num_interfaces = 0; \
class_container.interfaces = NULL; \
class_container.get_iterator = NULL; \
class_container.iterator_funcs.funcs = NULL; \
}

View file

@ -3565,14 +3565,13 @@ ZEND_API void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify
ce->__set = NULL;
ce->__call = NULL;
ce->create_object = NULL;
ce->get_iterator = NULL;
ce->iterator_funcs.funcs = NULL;
ce->interface_gets_implemented = NULL;
ce->parent = NULL;
ce->num_interfaces = 0;
ce->interfaces = NULL;
}
ce->parent = NULL;
ce->num_interfaces = 0;
ce->interfaces = NULL;
ce->get_iterator = NULL;
ce->iterator_funcs.funcs = NULL;
ce->interface_gets_implemented = NULL;
}