mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
05c78af854
commit
15964bb35d
2 changed files with 8 additions and 7 deletions
|
@ -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; \
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue